From ca22cb9241928741c34e13dc3fd0bf75303191f3 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Sat, 26 Oct 2013 12:36:18 +0200 Subject: [PATCH] CTextBox: Fix background paint --- 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 63049953c..2791fc211 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -554,7 +554,7 @@ void CTextBox::refreshText(void) delete[] m_bgpixbuf; m_bgpixbuf = NULL; } - if (has_changed){ + if (m_old_cText != m_cText || has_changed){ //TRACE("[CTextBox] %s paint bg %d\r\n", __FUNCTION__, __LINE__); frameBuffer->paintBoxRel(ax, ay, dx, dy, m_textBackgroundColor, m_nBgRadius, m_nBgRadiusType); }