cc_frm_icons: add missing return if no icon is available

This commit is contained in:
2020-03-01 16:19:14 +01:00
parent 01649342cb
commit 9c9bff2e25

View File

@@ -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,