mirror of https://github.com/GNOME/gimp.git
plug-ins: Move save_image() code out of options fetching code for GIF
Make the save_image() code out of the options fetching code for GIF to make this more independent.
This commit is contained in:
parent
c3b2e0e564
commit
d9862b21c1
|
@ -275,20 +275,20 @@ run (const gchar *name,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (status == GIMP_PDB_SUCCESS)
|
||||
if (status == GIMP_PDB_SUCCESS)
|
||||
{
|
||||
if (save_image (param[3].data.d_string,
|
||||
image_ID, drawable_ID, orig_image_ID,
|
||||
&error))
|
||||
{
|
||||
if (save_image (param[3].data.d_string,
|
||||
image_ID, drawable_ID, orig_image_ID,
|
||||
&error))
|
||||
{
|
||||
/* Store psvals data */
|
||||
gimp_set_data (SAVE_PROC, &gsvals, sizeof (GIFSaveVals));
|
||||
}
|
||||
else
|
||||
{
|
||||
status = GIMP_PDB_EXECUTION_ERROR;
|
||||
}
|
||||
/* Store psvals data */
|
||||
gimp_set_data (SAVE_PROC, &gsvals, sizeof (GIFSaveVals));
|
||||
}
|
||||
else
|
||||
{
|
||||
status = GIMP_PDB_EXECUTION_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue