From aedf686fe7057f46d37897d9473e915ba1c63158 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 28 Apr 2019 16:51:49 +0200 Subject: [PATCH] textbox.cpp: check for pix buffer content first for shure --- src/gui/widget/textbox.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 1be1919cf..9808cb522 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -607,8 +607,9 @@ void CTextBox::refreshText(void) if (has_changed) clearScreenBuffer(); - if(m_bgpixbuf && (m_old_cText != m_cText)) - frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf); + if(m_bgpixbuf) + if (m_old_cText != m_cText) + frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf); if (m_bgpixbuf){ frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf);