From 42d69e2c3463741450570970a5fbf33ab4e8805b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 9 Nov 2019 11:05:06 +0100 Subject: [PATCH] cc_frm_header: fix clock width --- src/gui/components/cc_frm_header.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index 31bdf3fd8..bc363d6fe 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -616,7 +616,7 @@ void CComponentsHeader::initCaption() cch_cl_obj->refresh(); //get width of clock object - int clock_w = cch_cl_enable ? cch_cl_obj->getWidth() : 0; + int clock_w = cch_cl_enable ? cch_cl_obj->getWidth() + cch_offset : 0; //set x position of clock cch_cl_obj->setXPos(width - buttons_w - clock_w);