CComponentsPicture: ensure cache cleanup on missing image while runtime

This commit is contained in:
2016-01-31 20:08:40 +01:00
parent c9a2b46b3b
commit 9e4ad83305

View File

@@ -256,8 +256,10 @@ void CComponentsPicture::paintPicture()
y_pic += fr_thickness;
initCCItem();
if (pic_name.empty())
if (pic_name.empty()){
clearCache();
return;
}
if (cc_allow_paint){
dprintf(DEBUG_INFO, "[CComponentsPicture] %s: paint image file: pic_name=%s\n", __func__, pic_name.c_str());