CComponentsPicture: initVarPicture() not execute if pic_name is blank

Origin commit data
------------------
Commit: bd47ef2060
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-04 (Thu, 04 Apr 2013)

Origin message was:
------------------
* CComponentsPicture: initVarPicture() not execute if pic_name is blank
This commit is contained in:
Michael Liebmann
2013-04-04 17:06:07 +02:00
parent ab59797ae5
commit 64c8fa2e62

View File

@@ -105,6 +105,9 @@ void CComponentsPicture::initVarPicture()
pic_painted = false; pic_painted = false;
do_paint = false; do_paint = false;
if (pic_name == "")
return;
if (pic_max_w == 0) if (pic_max_w == 0)
pic_max_w = width-2*fr_thickness; pic_max_w = width-2*fr_thickness;