From 60d1b4b3020181f2375f500899de54345ee547e9 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 6 Feb 2017 21:20:34 +0100 Subject: [PATCH] Helpbox: fix missing text after page repaint Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9f7605127a83bcab4e41b7c23d101f544790a6ef Author: Thilo Graf Date: 2017-02-06 (Mon, 06 Feb 2017) --- src/gui/widget/helpbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/helpbox.cpp b/src/gui/widget/helpbox.cpp index 4169b5d13..bb5c04829 100644 --- a/src/gui/widget/helpbox.cpp +++ b/src/gui/widget/helpbox.cpp @@ -98,9 +98,9 @@ void Helpbox::addLine(const std::string& icon, const std::string& text, const in if (!text.empty()){ int x_text = w_picon + (picon ? OFFSET_INNER_MID : 0); CComponentsText * txt = new CComponentsText(x_text, 0, line->getWidth()-x_text, 0, text, text_mode, font); + txt->doPaintBg(false); #if 0 //"contrast agent", if you want to see where the text items are drawn. txt->setColorBody(COL_RED); - txt->doPaintBg(true); #endif int lines = txt->getCTextBoxObject()->getLines(); txt_height = std::max(lines*font->getHeight(), h_line);