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:
Martin Nordholts 2010-02-13 13:26:46 +01:00
parent c3b2e0e564
commit d9862b21c1
1 changed files with 12 additions and 12 deletions

View File

@ -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;
}
}