[gegl] convert-space: make parent class a COMPOSER; enabling aux pad use



commit 90e33db3919027d9f740ede4ad1855986cd2eb89
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Nov 20 05:11:22 2020 +0100

    convert-space: make parent class a COMPOSER; enabling aux pad use

 operations/core/convert-space.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/operations/core/convert-space.c b/operations/core/convert-space.c
index bf83eca18..18a3b9ce9 100644
--- a/operations/core/convert-space.c
+++ b/operations/core/convert-space.c
@@ -31,7 +31,7 @@ property_file_path (path, _("Path"), "")
 
 #else
 
-#define GEGL_OP_FILTER
+#define GEGL_OP_COMPOSER
 #define GEGL_OP_NAME            convert_space
 #define GEGL_OP_C_SOURCE        convert-space.c
 
@@ -47,7 +47,11 @@ gegl_convert_space_prepare (GeglOperation *operation)
   const Babl *space = babl_space (o->name);
   if (o->pointer)
     space = o->pointer;
-  if (o->path)
+  if (aux_format)
+  {
+    space = babl_format_get_space (aux_format);
+  }
+  if (!space && o->path)
   {
     gchar *icc_data = NULL;
     gsize icc_length;
@@ -61,10 +65,6 @@ gegl_convert_space_prepare (GeglOperation *operation)
       g_free (icc_data);
     }
   }
-  if (aux_format)
-  {
-    space = babl_format_get_space (aux_format);
-  }
 
   gegl_operation_set_format (operation, "output",
                              babl_format_with_space ("RGBA float", space));


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