mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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 toe575e91329
Origin commit data ------------------ Branch: ni/coolstream Commit:d7ce847471
Author: Thilo Graf <dbt@novatux.de> Date: 2013-04-06 (Sat, 06 Apr 2013) ------------------ This commit was generated by Migit
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