diff --git a/src/gui/components/cc_frm_picture.cpp b/src/gui/components/cc_frm_picture.cpp index 1d2cee854..0b0d6b899 100644 --- a/src/gui/components/cc_frm_picture.cpp +++ b/src/gui/components/cc_frm_picture.cpp @@ -59,13 +59,15 @@ void CComponentsPicture::SetTransparent(const int &mode) void CComponentsPicture::setWidth(const int &w, bool keep_aspect) { ccp->setWidth(w, keep_aspect); - init(x, y, ccp->getBodyBGImage(), ccp->getBodyBGImageTranparencyMode()); + CComponentsForm::setWidth(ccp->getWidth()); + CComponentsForm::setHeight(ccp->getHeight()); } void CComponentsPicture::setHeight(const int &h, bool keep_aspect) { ccp->setHeight(h, keep_aspect); - init(x, y, ccp->getBodyBGImage(), ccp->getBodyBGImageTranparencyMode()); + CComponentsForm::setWidth(ccp->getWidth()); + CComponentsForm::setHeight(ccp->getHeight()); } void CComponentsPicture::paint(const bool &do_save_bg)