13
0

MCP: Fix up the feedback for the view selection buttons.

This commit is contained in:
Albert Graef 2018-09-24 14:30:27 +02:00 committed by Paul Davis
parent 38bccabeca
commit 65693a72a2

View File

@ -1176,7 +1176,7 @@ Surface::update_view_mode_display (bool with_helpful_text)
if (id >= 0) { if (id >= 0) {
for (vector<int>::iterator i = view_mode_buttons.begin(); i != view_mode_buttons.end(); ++i) { for (vector<int>::iterator i = view_mode_buttons.begin(); i != view_mode_buttons.end(); ++i) {
map<int,Control*>::iterator x = controls_by_device_independent_id.find (id); map<int,Control*>::iterator x = controls_by_device_independent_id.find (*i);
if (x != controls_by_device_independent_id.end()) { if (x != controls_by_device_independent_id.end()) {
Button* button = dynamic_cast<Button*> (x->second); Button* button = dynamic_cast<Button*> (x->second);