From 3f46a8fbc66bca4fccdb853f4d6499b85a6f6100 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 4 May 2014 01:26:57 +0200 Subject: [PATCH] CComponentsForm: use variable instead function Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/421296932e49265e343b4a883790d7751b943bbb Author: Thilo Graf Date: 2014-05-04 (Sun, 04 May 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index fbf203048..985dedcb9 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -276,7 +276,7 @@ void CComponentsForm::paintCCItems() } //positionize vertical centered else if (xpos == CC_CENTERED){ - auto_x = width/2 - cc_item->getWidth()/2; + auto_x = width/2 - w_item/2; cc_item->setRealXPos(this_x + auto_x); } else{ @@ -293,7 +293,7 @@ void CComponentsForm::paintCCItems() } //positionize hor centered else if (ypos == CC_CENTERED){ - auto_y = height/2 - cc_item->getHeight()/2; + auto_y = height/2 - h_item/2; cc_item->setRealYPos(this_y + auto_y); } else{