mirror of https://github.com/GNOME/gimp.git
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:
parent
99e399e523
commit
b53d51ca65
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue