mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsInfoBox: move statement for check of image name
Ensure empty pic object otherwise it can be retained on exit
of paintPicture(), if an instance of Infobox already exists.
supplement to 095c0e1b04
This commit is contained in:
@@ -91,12 +91,16 @@ void CComponentsInfoBox::initVarInfobox()
|
||||
|
||||
void CComponentsInfoBox::paintPicture()
|
||||
{
|
||||
if (pic_name == "")
|
||||
return;
|
||||
|
||||
//init and set icon paint position
|
||||
//ensure empty pic object
|
||||
if (pic)
|
||||
delete pic;
|
||||
pic = NULL;
|
||||
|
||||
//exit if no image definied
|
||||
if (pic_name == "")
|
||||
return;
|
||||
|
||||
//init pic object and set icon paint position
|
||||
pic = new CComponentsPicture(x+fr_thickness+x_offset, y+fr_thickness/*+y_offset*/, 0, 0, "");
|
||||
|
||||
//define icon
|
||||
|
Reference in New Issue
Block a user