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; }