From c63479911087fc8b346f804321314b0c62979c97 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 27 Apr 2013 21:36:02 +0200 Subject: [PATCH] CComponentsButton: use adequate arrangement for caption Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/85b1117f3781e02a8723dcf00f6db293d55308a1 Author: Thilo Graf Date: 2013-04-27 (Sat, 27 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 0f5aa8983..b9478d334 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -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);