From e23b03fde9fa70a2a49b5ab5e9cc2b72c254c6c5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 3 Apr 2013 10:30:24 +0200 Subject: [PATCH] CComponentsText: paint always background before painting text Ensures erase of old text, usefully to avoid often repaints of embedded textbox objects or text items --- src/gui/components/cc_item_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index 432abfda0..c666af19d 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -124,7 +124,7 @@ void CComponentsText::initCCText() ct_textbox->setTextMode(ct_text_mode); ct_textbox->setWindowPos(ct_box); ct_textbox->setTextBorderWidth(0); - ct_textbox->enableBackgroundPaint(false); + ct_textbox->enableBackgroundPaint(true); ct_textbox->setBackGroundColor(col_body); ct_textbox->setBackGroundRadius(corner_rad-fr_thickness, corner_type); ct_textbox->setTextColor(ct_col_text);