[gegl] engrave: propagate space



commit 073d7580524925bf3e040eb8245d159dd85d2cb1
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jul 6 11:36:46 2018 +0200

    engrave: propagate space

 operations/common-gpl3+/engrave.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/engrave.c b/operations/common-gpl3+/engrave.c
index 76e806ba5..64c1be6d0 100644
--- a/operations/common-gpl3+/engrave.c
+++ b/operations/common-gpl3+/engrave.c
@@ -97,7 +97,8 @@ prepare (GeglOperation *operation)
 {
   GeglOperationAreaFilter *area = GEGL_OPERATION_AREA_FILTER (operation);
   GeglProperties          *o = GEGL_PROPERTIES (operation);
-  const Babl              *format = babl_format ("Y'A float");
+  const Babl              *space   = gegl_operation_get_source_space (operation, "input");
+  const Babl              *format = babl_format_with_space ("Y'A float", space);
 
   area->left = area->right  = 0;
   area->top  = area->bottom = o->row_height;
@@ -129,7 +130,7 @@ process (GeglOperation       *operation,
          gint                 level)
 {
   GeglProperties *o      = GEGL_PROPERTIES (operation);
-  const Babl     *format = babl_format ("Y'A float");
+  const Babl     *format = gegl_operation_get_format (operation, "output");
 
   GeglRectangle *whole_region;
   GeglRectangle in_rect;


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