CComponentsFooter: fix wrong text color with single button in footers

* remove size compare

If only one button exists, possible new text color would be ignored
and wrong Text color was visible with one item.
This behavior was observed in message boxes with
single buttons (eg OK, or Cancel).
This commit is contained in:
2016-11-29 16:13:47 +01:00
parent 427b65813d
commit 8bf6b7fb3a

View File

@@ -362,8 +362,7 @@ void CComponentsFooter::setSelectedButton(size_t item_id,
sel_col = sel_fr_col; //TODO: make it configurable sel_col = sel_fr_col; //TODO: make it configurable
chain->setSelectedItem(item_id, sel_col, fr_col, sel_bg_col, bg_col, frame_width, sel_frame_width); chain->setSelectedItem(item_id, sel_col, fr_col, sel_bg_col, bg_col, frame_width, sel_frame_width);
if (chain->size() > 1) getSelectedButtonObject()->setButtonTextColor(sel_text_col);
getSelectedButtonObject()->setButtonTextColor(sel_text_col);
} }
} }