simplified.

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

	* plug-ins/common/lcms.c (run): simplified.

svn path=/trunk/; revision=23123
This commit is contained in:
Sven Neumann 2007-08-06 15:24:04 +00:00 committed by Sven Neumann
parent 99e399e523
commit b53d51ca65
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2007-08-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c (run): simplified.
2007-08-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c (load_rsvg_pixbuf): set the base URI so

View File

@ -291,8 +291,7 @@ run (const gchar *name,
INIT_I18N ();
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = status;
values[0].type = GIMP_PDB_STATUS;
*nreturn_vals = 1;
*return_vals = values;
@ -304,16 +303,10 @@ run (const gchar *name,
}
if (proc == NONE)
{
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
return;
}
goto done;
if (nparams < procedures[proc].nparams)
{
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
return;
}
goto done;
if (proc != PROC_FILE_INFO)
config = gimp_get_color_configuration ();
@ -391,6 +384,7 @@ run (const gchar *name,
break;
}
done:
if (config)
g_object_unref (config);