cc_item_text.cpp: fix missing pass through of var cc_allow_paint

In case of cc_allow_paint = false, text would be farther rendered
and this is not intended.


Origin commit data
------------------
Commit: 4f44170adb
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-10-28 (Sun, 28 Oct 2018)
This commit is contained in:
2018-10-28 22:00:38 +01:00
committed by vanhofen
parent 7f066ee89a
commit 4ef244f91e

View File

@@ -183,7 +183,8 @@ void CComponentsText::initCCText()
#endif
//send text to CTextBox object, but force text paint text if force_text_paint option is enabled
//this is managed by CTextBox object itself
ct_text_sent = ct_textbox->setText(&ct_text, ct_box.iWidth, force_text_paint);
if (cc_allow_paint)
ct_text_sent = ct_textbox->setText(&ct_text, ct_box.iWidth, force_text_paint);
//set current text status, needed by textChanged()
if (ct_text_sent){