CComponentsHeader: fix centering of header title

Origin commit data
------------------
Branch: ni/coolstream
Commit: 178bf6f596
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-10 (Wed, 10 May 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2017-05-10 10:42:08 +02:00
parent 2564b17c7a
commit e0b4ef9cf3

View File

@@ -581,7 +581,7 @@ void CComponentsHeader::initCaption()
//set alignment of text item in dependency from text alignment
if (cch_caption_align == CTextBox::CENTER)
cch_text_x = CC_CENTERED;
cch_text_x = width/2 - cc_text_w/2;
//assign general properties
cch_text_obj->setDimensionsAll(cch_text_x, cch_items_y, cc_text_w, height);