MCP: Fix up the feedback for the view selection buttons.
This commit is contained in:
parent
38bccabeca
commit
65693a72a2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user