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

maybe possible crash


Origin commit data
------------------
Branch: ni/coolstream
Commit: 17d0947446
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-01-01 (Tue, 01 Jan 2019)



------------------
This commit was generated by Migit
This commit is contained in:
2019-01-01 21:50:50 +01:00
committed by vanhofen
parent ed5b09a97f
commit 3266cd11e5

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