From 4ef244f91e0bd35aaa0b864ce16587fb5bda2d56 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 28 Oct 2018 22:00:38 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/4f44170adb0b1036cab9c6fa8fbdef460b5ceea5 Author: Thilo Graf Date: 2018-10-28 (Sun, 28 Oct 2018) --- src/gui/components/cc_item_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index 6352bddf5..3c0f97fc1 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -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){