From f49d09b904a237246a85ba22f092a891d8689a8d Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 9 Nov 2012 23:16:55 +0100 Subject: [PATCH] CTextBox: don't hide if m_nPaintBackground is set to false Required in CCompmonentsText. Hide of textbox object is unnecessary in CCompmonentsText objects. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/4db5c450a4ddc2e95bc1d5f1e9d6d5fe1d5509be Author: Thilo Graf Date: 2012-11-09 (Fri, 09 Nov 2012) --- src/gui/widget/textbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 47b5d0c4c..ba565c799 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -640,6 +640,8 @@ void CTextBox::hide (void) if(frameBuffer == NULL) return; - frameBuffer->paintBackgroundBoxRel(m_cFrame.iX, m_cFrame.iY, m_cFrame.iWidth, m_cFrame.iHeight); + if (m_nPaintBackground) + frameBuffer->paintBackgroundBoxRel(m_cFrame.iX, m_cFrame.iY, m_cFrame.iWidth, m_cFrame.iHeight); + frameBuffer = NULL; }