From 2aff49deea9ffae10c797e3525e7ee35a6722cf8 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 22 Jun 2014 23:28:48 +0200 Subject: [PATCH] CComponentsItem: remove unnecessary calculation of position with frame This should be done in the arrangement of the container contents --- src/gui/components/cc_item.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index e727fb6c1..01550c6b6 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -82,9 +82,8 @@ void CComponentsItem::paintInit(bool do_save_bg) //if item is bound on a parent form, we must use real x/y values and from parent form as reference int ix = x, iy = y; if (cc_parent){ - int w_parent_frame = cc_parent->getFrameThickness(); - ix = cc_xr + (x < w_parent_frame ? w_parent_frame : 0); - iy = cc_yr + (y < w_parent_frame ? w_parent_frame : 0); + ix = cc_xr; + iy = cc_yr; } comp_fbdata_t fbdata[] =