Recalculate labels and button states after zooming with the slider.
This commit is contained in:
parent
4cd9fd1a56
commit
c5f100c2e5
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue