From 0a31b29b9affcd5e66ae9cbbf268a496dc16f41c Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Wed, 29 May 2013 20:10:33 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c index b5fb53687b..e4e3366c75 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; } }