CComponentsHeader: fix corner type comparison

This commit is contained in:
2017-06-16 10:10:48 +02:00
parent c80cc24335
commit f46a174155

View File

@@ -258,7 +258,7 @@ void CComponentsHeader::initIcon()
//set corner mode of icon item //set corner mode of icon item
int cc_icon_corner_type = CORNER_LEFT; int cc_icon_corner_type = CORNER_LEFT;
if (corner_type == CORNER_TOP_LEFT || corner_type == CORNER_TOP) if (corner_type & CORNER_TOP_LEFT || corner_type & CORNER_TOP)
cc_icon_corner_type = CORNER_TOP_LEFT; cc_icon_corner_type = CORNER_TOP_LEFT;
cch_icon_obj->setCorner(corner_rad-fr_thickness, cc_icon_corner_type); cch_icon_obj->setCorner(corner_rad-fr_thickness, cc_icon_corner_type);