From bd47ef206072b18e6441f38f504131dd3125ca38 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Thu, 4 Apr 2013 17:06:07 +0200 Subject: [PATCH] * CComponentsPicture: initVarPicture() not execute if pic_name is blank --- src/gui/components/cc_item_picture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index 1857ac0fe..cd5f8ebf0 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -105,6 +105,9 @@ void CComponentsPicture::initVarPicture() pic_painted = false; do_paint = false; + if (pic_name == "") + return; + if (pic_max_w == 0) pic_max_w = width-2*fr_thickness;