cc_item_text: fix "text changed" detection

Origin commit data
------------------
Commit: 987555275a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-01-15 (Mon, 15 Jan 2018)
This commit is contained in:
Stefan Seyfried
2018-01-15 19:54:50 +01:00
committed by vanhofen
parent fbc5b7dcbe
commit c62e75af90

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;