CComponentsPicture: ensure cache cleanup on missing image while runtime

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e4ad83305
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-31 (Sun, 31 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-01-31 20:08:40 +01:00
parent e99599d21a
commit 852caa9e0e

View File

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