[gimp/metadata-browser] file-psd: Move run_mode decl to where it is conditionally used



commit 6a2c6603eae74b3ede1ad1c6c245ec67587ede0e
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Oct 3 11:00:22 2011 +0530

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

 plug-ins/file-psd/psd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/file-psd/psd.c b/plug-ins/file-psd/psd.c
index ac425e2..97668e1 100644
--- a/plug-ins/file-psd/psd.c
+++ b/plug-ins/file-psd/psd.c
@@ -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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]