From a50e93a5322123b089d4963bb24d97be496504b7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 2 Feb 2016 11:44:13 +0100 Subject: [PATCH] CTextBox: fix missing init of old bg color Avoids possible usage of wrong color after init. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/4d1780486d8c32d14ecbe20457e302f2b043e26a Author: Thilo Graf Date: 2016-02-02 (Tue, 02 Feb 2016) --- src/gui/widget/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 5f33a725e..0095155d0 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -97,7 +97,7 @@ CTextBox::CTextBox(const char * text, Font* font_text, const int pmode, //TRACE(" CTextBox::m_cText: %d, m_nMode %d\t\r\n",m_cText.size(),m_nMode); - m_textBackgroundColor = textBackgroundColor; + m_textBackgroundColor = m_old_textBackgroundColor = textBackgroundColor; m_nFontTextHeight = getFontTextHeight(); //TRACE("[CTextBox] %s Line %d\r\n", __FUNCTION__, __LINE__);