mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-07 13:48:28 +02:00
CComponentsHeader: fix text position if icon is removed
Origin commit data
------------------
Branch: ni/coolstream
Commit: 207a49994e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-12-26 (Tue, 26 Dec 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
8c523d6d57
commit
94bb966c90
@@ -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*/;
|
||||
|
Reference in New Issue
Block a user