From 692d39bfb0808719e1b77ff9cd2409a600fbe356 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 14 Nov 2018 15:32:24 +0100 Subject: [PATCH] cc_item_text.cpp: add missing paint state after rendered text box Evaluations while usage of this state could has been wrong or incomplete and therefore it was possible that some effects were unintended or without any effect. --- src/gui/components/cc_item_text.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index 3c0f97fc1..6037fdda8 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -284,12 +284,16 @@ void CComponentsText::paintText(bool do_save_bg) //init slot to handle repaint of text if background was repainted cc_parent->OnAfterPaintBg.connect(sigc::bind(sigc::mem_fun(*this, &CComponentsText::forceTextPaint), true)); } + initCCText(); + if (!is_painted) paintInit(do_save_bg); - if (ct_text_sent && cc_allow_paint) + if (ct_text_sent && cc_allow_paint){ ct_textbox->paint(); + is_painted = true; + } ct_text_sent = false; }