From 764dbcd4293dd26f64175c78e8c1a4492c663b36 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 25 Nov 2012 22:12:02 +0100 Subject: [PATCH] CComponentsPicture: add missing define of dimensions after init --- src/gui/components/components.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/components.cpp b/src/gui/components/components.cpp index eb445a057..50019702b 100644 --- a/src/gui/components/components.cpp +++ b/src/gui/components/components.cpp @@ -883,8 +883,8 @@ void CComponentsPicture::initVarPicture() } int sw = (shadow ? shadow_w :0); - width = max(pic_width, width) + sw ; - height = max(pic_height, height) + sw ; + width = max(max(pic_width, pic_max_w), width) + sw ; + height = max(max(pic_height, pic_max_h), height) + sw ; } void CComponentsPicture::paint(bool do_save_bg)