CComponentsHeader: fix brace error

suggest explicit braces to avoid ambiguous ‘else’
This commit is contained in:
2017-05-11 08:35:24 +02:00
parent 843703b175
commit 1b2f1d320d

View File

@@ -330,10 +330,10 @@ void CComponentsHeader::initLogo()
//set final logo position
int x_logo = 0;
if (cch_logo.Align == CC_LOGO_RIGHT){
if (cch_caption_align == CTextBox::RIGHT)
if (cch_caption_align == CTextBox::RIGHT){
if (cch_text_obj)
x_logo = cch_text_obj->getXPos() - cch_logo_obj->getWidth();
else
}else
x_logo = x_logo_right;
}
if (cch_logo.Align == CC_LOGO_LEFT)