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:
Alx Sa 2023-08-15 02:18:19 +00:00 committed by Jehan
parent 6aeb456e17
commit 192bd42510
1 changed files with 7 additions and 1 deletions

View File

@ -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;