mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
cc_frm_icons: add missing return if no icon is available
This commit is contained in:
@@ -77,6 +77,9 @@ void CComponentsIconForm::initVarIconForm( const int &x_pos, const int &y_pos, c
|
||||
|
||||
void CComponentsIconForm::addIcon(const std::string& icon_name)
|
||||
{
|
||||
if (icon_name.empty())
|
||||
return;
|
||||
|
||||
//create new cc-picture item object
|
||||
CComponentsPicture *ccp = new CComponentsPicture(chn_direction == CC_DIR_X ? CC_APPEND : CC_CENTERED,
|
||||
chn_direction == CC_DIR_Y ? CC_APPEND : CC_CENTERED,
|
||||
|
Reference in New Issue
Block a user