diff --git a/src/gui/components/cc_frm_icons.cpp b/src/gui/components/cc_frm_icons.cpp index 4f184534f..ac3f050e9 100644 --- a/src/gui/components/cc_frm_icons.cpp +++ b/src/gui/components/cc_frm_icons.cpp @@ -84,7 +84,10 @@ void CComponentsIconForm::addIcon(const std::string& icon_name) icon_name, this); ccp->doPaintBg(false); - + int dx, dy; + ccp->getRealSize(&dx, &dy); + height = max(height, dy); + width = max(width, dx); initChainItems(); }