CComponentsHeader: fix text position if icon is removed

Origin commit data
------------------
Commit: 207a49994e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-12-26 (Tue, 26 Dec 2017)
This commit is contained in:
Stefan Seyfried
2017-12-26 22:58:36 +01:00
committed by vanhofen
parent 52dc9f8ec1
commit 8ee019b5ff

View File

@@ -552,6 +552,8 @@ void CComponentsHeader::initCaption()
if (!cch_icon_name.empty()){
cch_text_x = cch_icon_x+cch_icon_w+cch_offset;
}
else /* if a icon was present before and was removed, reinit x position */
cch_text_x = cch_offset;
//calc width of text object in header
cc_text_w = width-cch_text_x/*-cch_offset*/;