[gimp] app: transform_tool - don't flush the image when display is NULL



commit 0a31b29b9affcd5e66ae9cbbf268a496dc16f41c
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Wed May 29 20:10:33 2013 +0200

    app: transform_tool - don't flush the image when display is NULL
    
    it means the dialog is being deleted

 app/tools/gimptransformtool.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index b5fb536..e4e3366 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -1804,7 +1804,8 @@ gimp_transform_tool_response (GtkWidget         *widget,
       gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display);
 
       /*  update the undo actions / menu items  */
-      gimp_image_flush (gimp_display_get_image (display));
+      if (display)
+        gimp_image_flush (gimp_display_get_image (display));
       break;
     }
 }


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