plug-ins: make sure "decompose-type" in decompose.c is upperacse

because the string combo box in the dialog is case sensitive.
This commit is contained in:
Michael Natterer 2020-06-17 21:50:54 +02:00
parent 54b5faeefb
commit 4e9227e5d3
1 changed files with 14 additions and 0 deletions

View File

@ -356,6 +356,7 @@ decompose_run (GimpProcedure *procedure,
gint num_layers;
GString *data;
gchar *decompose_type;
gchar *tmp;
gint j;
INIT_I18N ();
@ -364,6 +365,19 @@ decompose_run (GimpProcedure *procedure,
config = gimp_procedure_create_config (procedure);
gimp_procedure_config_begin_run (config, NULL, run_mode, args);
g_object_get (config,
"decompose-type", &decompose_type,
NULL);
tmp = g_ascii_strup (decompose_type, -1);
g_free (decompose_type);
g_object_set (config,
"decompose-type", tmp,
NULL);
g_free (tmp);
if (run_mode == GIMP_RUN_INTERACTIVE)
{
if (! decompose_dialog (procedure, G_OBJECT (config)))