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.
This commit is contained in:
2018-11-14 15:32:24 +01:00
parent b86b89981f
commit 692d39bfb0

View File

@@ -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;
}