From 60c9dc843225c7e465cdc272d243a7c0e70c5789 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 11 Jan 2016 16:40:38 +0100 Subject: [PATCH] CComponentsText: try to fix mismatching calculation of y pos inside form --- src/gui/components/cc_item_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index bfe7a622a..3707dfd85 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -133,7 +133,7 @@ void CComponentsText::initCCText() if (cc_parent){ int th_parent_fr = cc_parent->getFrameThickness(); iX = cc_xr + (x <= th_parent_fr ? th_parent_fr : 0); - iY = cc_yr + (y <= th_parent_fr ? th_parent_fr : 0); + iY = cc_yr - (y <= th_parent_fr ? th_parent_fr : 0); } //init textbox