From 5cfe504044bc82b056212c478332e6c16fa108d6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 21 Feb 2016 14:12:06 +0100 Subject: [PATCH] CComponentsText: assign current initialized position values to old var --- src/gui/components/cc_item_text.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/components/cc_item_text.cpp b/src/gui/components/cc_item_text.cpp index c554f1123..883dfea9f 100644 --- a/src/gui/components/cc_item_text.cpp +++ b/src/gui/components/cc_item_text.cpp @@ -178,6 +178,8 @@ void CComponentsText::initCCText() ct_textbox->setTextRenderModeFullBG(!paint_bg); dprintf(DEBUG_DEBUG, "[CComponentsText] [%s - %d] init text: %s [x %d, y %d, w %d, h %d]\n", __func__, __LINE__, ct_text.c_str(), this->iX, this->iY, this->iWidth, this->iHeight); + x_old = iX = x + fr_thickness; + y_old = iY = y + fr_thickness; } void CComponentsText::clearCCText()