[gimp/soc-2011-seamless-clone2] app: reset the rotation to zero when the shell is emptied



commit 9de65a025a255868f2fd78bd41f8ac7125dd150f
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 21 02:46:17 2013 +0200

    app: reset the rotation to zero when the shell is emptied
    
    so the next image doesn't appear rotated.

 app/display/gimpdisplayshell.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index f1a771a..c6c6aab 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -1332,6 +1332,9 @@ gimp_display_shell_empty (GimpDisplayShell *shell)
   /*  so wilber doesn't flicker  */
   gtk_widget_set_double_buffered (shell->canvas, TRUE);
 
+  shell->rotate_angle = 0.0;
+  gimp_display_shell_rotate_update_transform (shell);
+
   gimp_display_shell_expose_full (shell);
 
   user_context = gimp_get_user_context (shell->display->gimp);


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