[gimp] app: reset the rotation to zero when the shell is emptied
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: reset the rotation to zero when the shell is emptied
- Date: Sun, 21 Apr 2013 00:47:48 +0000 (UTC)
commit ca9a9fb498c8ef9c5c08083bb694bc4e6ae8e4df
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 file changed, 3 insertions(+)
---
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]