widget/textbox: cpp: try to fix possible issue while restore screen

maybe possible crash


Origin commit data
------------------
Commit: 17d0947446
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-01-01 (Tue, 01 Jan 2019)
This commit is contained in:
2019-01-01 21:50:50 +01:00
committed by vanhofen
parent 1c1700e714
commit c8cccd0147

View File

@@ -658,7 +658,7 @@ void CTextBox::refreshText(void)
}
}
else{
if (m_bgpixbuf){
if (m_bgpixbuf && m_bg_painted){
if (allow_paint_bg){
//TRACE("[CTextBox] %s restore bg %d\r\n", __FUNCTION__, __LINE__);
frameBuffer->RestoreScreen(ax, ay, dx, dy, m_bgpixbuf);