From b3ad4a4396cc4c9e2fb98fc35b7c20a703bc4dcc Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 22 Sep 2012 13:37:24 +0200 Subject: [PATCH] CComponentsText: ensure an empty default value for AUTO_WIDTH in setText() AUTO_WIDTH has ugly sideeffects in context with max width Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fcf8a018c55766fbeea6ebbda4118986cb546307 Author: Thilo Graf Date: 2012-09-22 (Sat, 22 Sep 2012) ------------------ This commit was generated by Migit --- src/gui/components/cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 980ec66ee..24f12959b 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -429,7 +429,7 @@ class CComponentsText : public CComponentsContainer CComponentsText(); ~CComponentsText(); - inline void setText(const char* text, const int text_mode=CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;}; + inline void setText(const char* text, const int text_mode=~CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;}; void hide(bool no_restore = false); void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);