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

it means the dialog is being deleted
This commit is contained in:
Massimo Valentini
2013-05-29 20:10:33 +02:00
parent 894d7568ac
commit 0a31b29b9a

View File

@ -1804,7 +1804,8 @@ gimp_transform_tool_response (GtkWidget *widget,
gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display); gimp_tool_control (tool, GIMP_TOOL_ACTION_HALT, display);
/* update the undo actions / menu items */ /* 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; break;
} }
} }