only delete the image if gimp_export_image() actually created a new one.

2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): only delete the image if
	gimp_export_image() actually created a new one.

svn path=/trunk/; revision=22975
This commit is contained in:
Sven Neumann 2007-07-23 14:10:47 +00:00 committed by Sven Neumann
parent 9b22106ba6
commit 08dc7006ea
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2007-07-23 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c (print_image): only delete the image if
gimp_export_image() actually created a new one.
* plug-ins/print/print-page-layout.c: some more dialog layout tweaks.
2007-07-23 Sven Neumann <sven@gimp.org>

View File

@ -234,7 +234,9 @@ print_image (gint32 image_ID,
g_object_unref (operation);
gimp_drawable_detach (drawable);
gimp_image_delete (image_ID);
if (export == GIMP_EXPORT_EXPORT)
gimp_image_delete (image_ID);
if (error)
{