[gegl] noise-hsv: propagate space



commit 10c701b670ce5725e248275eda5c70b7074479c0
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 22:51:36 2018 +0200

    noise-hsv: propagate space

 operations/common/noise-hsv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-hsv.c b/operations/common/noise-hsv.c
index 6ab7ee238..ced56ab95 100644
--- a/operations/common/noise-hsv.c
+++ b/operations/common/noise-hsv.c
@@ -100,8 +100,9 @@ randomize_value (gfloat      now,
 static void
 prepare (GeglOperation *operation)
 {
-  gegl_operation_set_format (operation, "input", babl_format ("HSVA float"));
-  gegl_operation_set_format (operation, "output", babl_format ("HSVA float"));
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
+  gegl_operation_set_format (operation, "input", babl_format_with_space ("HSVA float", space));
+  gegl_operation_set_format (operation, "output", babl_format_with_space ("HSVA float", space));
 }
 
 static gboolean


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