[gimp] plug-ins: Move save_image() code out of options fetching code for GIF
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: Move save_image() code out of options fetching code for GIF
- Date: Tue, 16 Feb 2010 19:00:44 +0000 (UTC)
commit d9862b21c1c3230cbdade3d437ebc0cfd7f9baa6
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Feb 13 13:26:46 2010 +0100
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.
plug-ins/common/file-gif-save.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index dfd56d6..4d5d6fb 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]