From e2b20f649b946f0a02979faaf8ab81e64117e230 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 25 Jun 2013 11:23:02 +0200 Subject: [PATCH] CComponentsForm: add more debug details Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f3cb2bc41cb6184ec1b3024f14ca70a22be8c09f Author: Thilo Graf Date: 2013-06-25 (Tue, 25 Jun 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index 990a62223..f00078539 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -335,7 +335,8 @@ void CComponentsForm::paintCCItems() int w_diff = right_item - right_frm; int new_w = w_item - w_diff; if (right_item > right_frm){ - printf("[CComponentsForm] %s: item %d width is too large, definied width=%d, possible width=%d \n", __FUNCTION__, i, w_item, new_w); + printf("[CComponentsForm] %s: [form: %d] [item-index %d] [type=%d] width is too large, definied width=%d, possible width=%d \n", + __FUNCTION__, cc_item_index, cc_item->getIndex(), cc_item->getItemType(), w_item, new_w); cc_item->setWidth(new_w); } @@ -345,7 +346,8 @@ void CComponentsForm::paintCCItems() int h_diff = bottom_item - bottom_frm; int new_h = h_item - h_diff; if (bottom_item > bottom_frm){ - printf("[CComponentsForm] %s: item %d height is too large, definied height=%d, possible height=%d \n", __FUNCTION__, i, h_item, new_h); + printf("[CComponentsForm] %s: [form: %d] [item-index %d] [type=%d] height is too large, definied height=%d, possible height=%d \n", + __FUNCTION__, cc_item_index, cc_item->getIndex(), cc_item->getItemType(), h_item, new_h); cc_item->setHeight(new_h); }