Commit 11780006 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app: pause/resume the shell in gimp_display_shell_scale_to()

around calls to scale() and scroll().
parent 9391cd39
......@@ -901,6 +901,9 @@ gimp_display_shell_scale_to (GimpDisplayShell *shell,
if (! shell->display)
return;
/* freeze the active tool */
gimp_display_shell_pause (shell);
gimp_display_shell_untransform_xy_f (shell,
viewport_x,
viewport_y,
......@@ -924,6 +927,9 @@ gimp_display_shell_scale_to (GimpDisplayShell *shell,
gimp_display_shell_scroll (shell,
new_viewport_x - viewport_x,
new_viewport_y - viewport_y);
/* re-enable the active tool */
gimp_display_shell_resume (shell);
}
static gboolean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment