From d87c1c90714623cb630e1ae2140039ff7e925bcd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 25 Aug 2012 20:55:07 +0200 Subject: [PATCH] CComponentsPicture: use DEBUG to show dimensions error --- src/gui/components/components.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/components/components.cpp b/src/gui/components/components.cpp index 9d5d58da9..f75f363eb 100644 --- a/src/gui/components/components.cpp +++ b/src/gui/components/components.cpp @@ -757,12 +757,14 @@ void CComponentsPicture::initVarPicture() g_PicViewer->rescaleImageDimensions(&pic_width, &pic_height, maxWidth, maxHeight); } +#ifdef DEBUG if (pic_width == 0 || pic_height == 0) printf("CComponentsPicture: %s file: %s, no icon dimensions found! width = %d, height = %d\n", __FUNCTION__, pic_name.c_str(), pic_width, pic_height); - +#endif + pic_x += fr_thickness; pic_y += fr_thickness; - + if (pic_height>0 && pic_width>0){ if (pic_align & CC_ALIGN_LEFT) pic_x = x+fr_thickness;