mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
* CComponentsInfoBox: CComponentsPicture not create when no image to draw
This commit is contained in:
@@ -91,6 +91,9 @@ void CComponentsInfoBox::initVarInfobox()
|
|||||||
|
|
||||||
void CComponentsInfoBox::paintPicture()
|
void CComponentsInfoBox::paintPicture()
|
||||||
{
|
{
|
||||||
|
if (pic_name == "")
|
||||||
|
return;
|
||||||
|
|
||||||
//init and set icon paint position
|
//init and set icon paint position
|
||||||
if (pic)
|
if (pic)
|
||||||
delete pic;
|
delete pic;
|
||||||
@@ -115,7 +118,7 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
|||||||
x_text = x+fr_thickness+x_offset;
|
x_text = x+fr_thickness+x_offset;
|
||||||
|
|
||||||
//set text to the left border if picture is not painted
|
//set text to the left border if picture is not painted
|
||||||
if (pic->isPicPainted()){
|
if ((pic) && (pic->isPicPainted())){
|
||||||
int pic_w = pic->getWidth();
|
int pic_w = pic->getWidth();
|
||||||
x_text += pic_w+x_offset;
|
x_text += pic_w+x_offset;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user