CComponentsForm: fix centering of items inside form

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2f889b9563
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-05-04 01:39:17 +02:00
parent 3f46a8fbc6
commit 1f73a91a36

View File

@@ -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{