mirror of https://github.com/GNOME/gimp.git
plug-ins: Removing "args" reference from file-jp2-load
One instance of `(GIMP_VALUES_GET_INT (args, 0)` was missed during the initial conversion. This caused a compiler error. The value is now retrieved from the GimpProcedureConfig object.
This commit is contained in:
parent
6aeb456e17
commit
192bd42510
|
@ -285,11 +285,17 @@ jp2_load (GimpProcedure *procedure,
|
|||
default:
|
||||
if (! strcmp (gimp_procedure_get_name (procedure), LOAD_J2K_PROC))
|
||||
{
|
||||
gint color_space_argument = 0;
|
||||
|
||||
g_object_get (config,
|
||||
"colorspace", &color_space_argument,
|
||||
NULL);
|
||||
|
||||
/* Order is not the same as OpenJPEG enum on purpose,
|
||||
* since it's better to not rely on a given order or
|
||||
* on enum values.
|
||||
*/
|
||||
switch (GIMP_VALUES_GET_INT (args, 0))
|
||||
switch (color_space_argument)
|
||||
{
|
||||
case 1:
|
||||
color_space = OPJ_CLRSPC_GRAY;
|
||||
|
|
Loading…
Reference in New Issue