CComponentsButton: use adequate arrangement for caption

Origin commit data
------------------
Branch: ni/coolstream
Commit: 85b1117f37
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-27 (Sat, 27 Apr 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
2013-04-27 21:36:02 +02:00
parent b17e7994c5
commit c634799110

View File

@@ -111,7 +111,7 @@ void CComponentsButton::initCaption()
int cap_y = this->getRealYPos();
if (cc_btn_icon_obj)
cap_x = this->getRealXPos()+(width/2)-(cc_btn_icon_obj->getWidth()+cc_btn_text_w)/2+cc_btn_icon_obj->getWidth();
cap_x = this->getRealXPos()+cc_btn_icon_obj->getWidth();
if (cc_btn_capt_obj){
cc_btn_capt_obj->setDimensionsAll(cap_x, cap_y, width-cap_x, cap_h);