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



commit 4e9227e5d39456e9f3cd7b9bc7f912320785251a
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jun 17 21:50:54 2020 +0200

    plug-ins: make sure "decompose-type" in decompose.c is upperacse
    
    because the string combo box in the dialog is case sensitive.

 plug-ins/common/decompose.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/plug-ins/common/decompose.c b/plug-ins/common/decompose.c
index 69ce7bc90b..5901d03b05 100644
--- a/plug-ins/common/decompose.c
+++ b/plug-ins/common/decompose.c
@@ -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)))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]