cc_item_text: fix "text changed" detection

This commit is contained in:
Stefan Seyfried
2017-12-31 15:12:07 +01:00
committed by Thilo Graf
parent 2a645b1a71
commit 448838b069

View File

@@ -208,8 +208,8 @@ bool CComponentsText::setText(const std::string& stext, const int mode, Font* fo
{
if (ct_text != stext || ct_text_mode != mode || ct_font != font_text || ct_col_text != color_text || ct_text_style != style ){
if (ct_text != stext){
ct_text = stext;
ct_old_text = ct_text;
ct_text = stext;
}
if (ct_text_mode != mode /*|| mode != ~CTextBox::AUTO_WIDTH*/)
ct_text_mode = mode;