plug-ins: gif export should not carry on when sanity_check() fails.
This specific crash was only occuring when GIMP_INTERACTIVE_EXPORT=1 and canceling the first dialog. So that should not happen too often, but well, now it's fixed…
This commit is contained in:
@ -287,6 +287,8 @@ run (const gchar *name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (status == GIMP_PDB_SUCCESS)
|
||||||
|
{
|
||||||
/* Create an exportable image based on the export options */
|
/* Create an exportable image based on the export options */
|
||||||
switch (run_mode)
|
switch (run_mode)
|
||||||
{
|
{
|
||||||
@ -318,8 +320,6 @@ run (const gchar *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Write the image to file */
|
/* Write the image to file */
|
||||||
if (status == GIMP_PDB_SUCCESS)
|
|
||||||
{
|
|
||||||
if (save_image (param[3].data.d_string,
|
if (save_image (param[3].data.d_string,
|
||||||
image_ID, drawable_ID, orig_image_ID,
|
image_ID, drawable_ID, orig_image_ID,
|
||||||
&error))
|
&error))
|
||||||
|
Reference in New Issue
Block a user