Recalculate labels and button states after zooming with the slider.

This commit is contained in:
fendrin 2013-05-12 19:38:38 +02:00
parent 4cd9fd1a56
commit c5f100c2e5

View file

@ -1010,8 +1010,11 @@ void editor_controller::left_mouse_up(int x, int y, const bool /*browse*/)
if (a) set_button_state(*gui_);
toolkit_->set_mouseover_overlay();
gui::slider* s = gui_->find_slider("map-zoom-slider");
if (s && s->value_change())
if (s && s->value_change()) {
gui_->set_zoom(s->value(), true);
context_manager_->get_map_context().get_labels().recalculate_labels();
set_button_state(*gui_);
}
context_manager_->refresh_after_action();
}