From 2f889b95634af1dbdcad1fc2be11818bd7532f79 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 4 May 2014 01:39:17 +0200 Subject: [PATCH] CComponentsForm: fix centering of items inside form --- 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 985dedcb9..ea60fc479 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 - w_item/2; + auto_x = width/2 - w_item/2 +fr_thickness; 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 - h_item/2; + auto_y = height/2 - h_item/2 +fr_thickness; cc_item->setRealYPos(this_y + auto_y); } else{