src/gui/epgview.cpp: initialize of dimensions dependently from added icons

... so it is possible to get usable dimension values. Useful if in parent
object none values or too small dimensions are defined.
This commit is contained in:
2018-03-23 17:34:25 +01:00
parent 3fbfff3b74
commit 3233abce5d

View File

@@ -84,7 +84,10 @@ void CComponentsIconForm::addIcon(const std::string& icon_name)
icon_name, icon_name,
this); this);
ccp->doPaintBg(false); ccp->doPaintBg(false);
int dx, dy;
ccp->getRealSize(&dx, &dy);
height = max(height, dy);
width = max(width, dx);
initChainItems(); initChainItems();
} }