moved run_mode initialisation up a few lines.

2007-06-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/twain.c (run): moved run_mode initialisation up 
a
	few lines.


svn path=/trunk/; revision=22755
This commit is contained in:
Sven Neumann 2007-06-11 18:02:20 +00:00 committed by Sven Neumann
parent e23f585f07
commit 3ce6de2bb1
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2007-06-11 Sven Neumann <sven@gimp.org>
* plug-ins/twain/twain.c (run): moved run_mode initialisation up a
few lines.
* app/tools/gimpscaletool.c: removed unused variable.
2007-06-11 Mukund Sivaraman <muks@mukund.org>

View File

@ -381,7 +381,7 @@ run (const gchar *name,
gint *nreturn_vals,
GimpParam **return_vals)
{
GimpRunMode run_mode;
GimpRunMode run_mode = param[0].data.d_int32
/* Initialize the return values
* Always return at least the status to the caller.
@ -402,9 +402,6 @@ run (const gchar *name,
return;
}
/* Get the runmode from the in-parameters */
run_mode = param[0].data.d_int32;
/* Set up the rest of the return parameters */
values[1].type = GIMP_PDB_INT32;
values[1].data.d_int32 = 0;