From 14a3546b5fd791c8088c6f3af925dd39a8b6da47 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 3 Feb 2014 10:09:56 +0100 Subject: [PATCH] CComponentsPicture: add debug output for handled item dimensions and pos --- src/gui/components/cc_item_picture.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index d1a109b0a..94f7af613 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -143,6 +143,11 @@ void CComponentsPicture::initCCItem() int sw = (shadow ? shadow_w :0); width = max(max(pic_width, pic_max_w), width) + sw ; height = max(max(pic_height, pic_max_h), height) + sw ; + +#ifdef DEBUG_CC + printf("[CComponentsPicture] %s initialized Image: ====>> %s\n\titem x = %d\n\tdx = %d (image dx = %d)\n\titem y = %d\n\titem dy = %d (image dy = %d)\n", + __func__, pic_name.c_str(), x, width, pic_width, y, height, pic_height); +#endif } void CComponentsPicture::initPosition()