From 421296932e49265e343b4a883790d7751b943bbb 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 --- 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{