Commit 4e9227e5 authored by Michael Natterer's avatar Michael Natterer 😴

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

because the string combo box in the dialog is case sensitive.
parent 54b5faee
......@@ -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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment