mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
CComponentsPicture: don't paint image, if is not available
This commit is contained in:
@@ -109,7 +109,7 @@ void CComponentsPicture::setPicture(const char* picture_name)
|
|||||||
void CComponentsPicture::initCCItem()
|
void CComponentsPicture::initCCItem()
|
||||||
{
|
{
|
||||||
if (pic_name.empty()){
|
if (pic_name.empty()){
|
||||||
dprintf(DEBUG_NORMAL, "[CComponentsPicture] %s: no image file assigned...\n", __func__);
|
dprintf(DEBUG_INFO, "[CComponentsPicture] %s - %d : no image file assigned...\n", __func__, __LINE__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,6 +193,8 @@ void CComponentsPicture::paintPicture()
|
|||||||
|
|
||||||
void CComponentsPicture::paint(bool do_save_bg)
|
void CComponentsPicture::paint(bool do_save_bg)
|
||||||
{
|
{
|
||||||
|
if (pic_name.empty())
|
||||||
|
return;
|
||||||
paintInit(do_save_bg);
|
paintInit(do_save_bg);
|
||||||
paintPicture();
|
paintPicture();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user