[gegl] hue-chroma: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gegl] hue-chroma: propagate BablSpace
 
- Date: Thu,  5 Jul 2018 15:21:35 +0000 (UTC)
 
commit dfb89e5a6f0caf73ec2f84717a344149e9ee887d
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 5 17:21:01 2018 +0200
    hue-chroma: propagate BablSpace
 operations/common/hue-chroma.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/hue-chroma.c b/operations/common/hue-chroma.c
index 7eda54acd..1ecf3ebc0 100644
--- a/operations/common/hue-chroma.c
+++ b/operations/common/hue-chroma.c
@@ -46,10 +46,11 @@ property_double (lightness, _("Lightness"), 0.0)
 static void
 prepare (GeglOperation *operation)
 {
+  const Babl *space = gegl_operation_get_source_space (operation, "input");
   gegl_operation_set_format (operation, "input",
-                             babl_format ("CIE LCH(ab) alpha float"));
+                   babl_format_with_space ("CIE LCH(ab) alpha float", space));
   gegl_operation_set_format (operation, "output",
-                             babl_format ("CIE LCH(ab) alpha float"));
+                   babl_format_with_space ("CIE LCH(ab) alpha float", space));
 }
 
 static gboolean
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]