[gimp] app: pause/resume the shell in gimp_display_shell_scale_to()



commit 117800063e335dabdcf57a827e133abaf2d92cf3
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jan 5 20:24:18 2016 +0100

    app: pause/resume the shell in gimp_display_shell_scale_to()
    
    around calls to scale() and scroll().

 app/display/gimpdisplayshell-scale.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-scale.c b/app/display/gimpdisplayshell-scale.c
index 48072ed..6500e22 100644
--- a/app/display/gimpdisplayshell-scale.c
+++ b/app/display/gimpdisplayshell-scale.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]