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).


Origin commit data
------------------
Commit: 8bf6b7fb3a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-29 (Tue, 29 Nov 2016)
This commit is contained in:
2016-11-29 16:13:47 +01:00
parent b2e71497d8
commit b79c87dcfe

View File

@@ -362,7 +362,6 @@ 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);
} }
} }