file-psd: Move run_mode decl to where it is conditionally used

This commit is contained in:
Mukund Sivaraman 2011-10-03 11:00:22 +05:30
parent 211dfb0ce1
commit c7466e4f8a
1 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,6 @@ run (const gchar *name,
GimpParam **return_vals)
{
static GimpParam values[4];
GimpRunMode run_mode;
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
gint32 image_ID;
GError *error = NULL;
@ -179,8 +178,6 @@ run (const gchar *name,
INIT_I18N ();
run_mode = param[0].data.d_int32;
*nreturn_vals = 1;
*return_vals = values;
@ -240,6 +237,9 @@ run (const gchar *name,
/* File save */
else if (strcmp (name, SAVE_PROC) == 0)
{
GimpRunMode run_mode;
run_mode = param[0].data.d_int32;
image_ID = param[1].data.d_int32;
drawable_ID = param[2].data.d_int32;