From 988d1f3ea8c1ff7ccf746953eb24e67365727fbe Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 27 Apr 2013 21:04:26 +0200 Subject: [PATCH] CComponentsHeader/Button: force paint of text --- src/gui/components/cc_frm_button.cpp | 1 + src/gui/components/cc_frm_header.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 7895f00a0..0f5aa8983 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -117,6 +117,7 @@ void CComponentsButton::initCaption() cc_btn_capt_obj->setDimensionsAll(cap_x, cap_y, width-cap_x, cap_h); cc_btn_capt_obj->setTextColor(this->cc_item_enabled ? COL_MENUCONTENT : COL_MENUCONTENTINACTIVE); cc_btn_capt_obj->setText(cc_btn_capt, CTextBox::NO_AUTO_LINEBREAK, cc_btn_font); + cc_btn_capt_obj->forceTextPaint(); //here required; cc_btn_capt_obj->doPaintBg(false); //corner of text item diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index 5deb2c086..1f5694919 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -286,6 +286,7 @@ void CComponentsHeader::initCCHeaderText() //set header text properties if (cch_text_obj){ cch_text_obj->setText(cch_text, CTextBox::AUTO_WIDTH, cch_font); + cch_text_obj->forceTextPaint(); //here required cch_text_obj->setDimensionsAll(cch_text_x, cch_items_y, width-cch_icon_w-fr_thickness, height-2*fr_thickness); cch_text_obj->setTextColor(cch_col_text); cch_text_obj->setColorBody(col_body);