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: 4db5c450a4
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)
This commit is contained in:
2012-11-09 23:16:55 +01:00
parent 4cece41b29
commit f49d09b904

View File

@@ -640,6 +640,8 @@ void CTextBox::hide (void)
if(frameBuffer == NULL) if(frameBuffer == NULL)
return; 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; frameBuffer = NULL;
} }