From 4d5a967d6aa608f8a22dd3ab01b99159055fdf3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 6 Jul 2018 14:51:45 +0200 Subject: [PATCH] app: gimp:shrink propagate bable space --- app/operations/gimpoperationshrink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/operations/gimpoperationshrink.c b/app/operations/gimpoperationshrink.c index 0339e7e7c4..41fb05caf7 100644 --- a/app/operations/gimpoperationshrink.c +++ b/app/operations/gimpoperationshrink.c @@ -184,8 +184,9 @@ gimp_operation_shrink_set_property (GObject *object, static void gimp_operation_shrink_prepare (GeglOperation *operation) { - gegl_operation_set_format (operation, "input", babl_format ("Y float")); - gegl_operation_set_format (operation, "output", babl_format ("Y float")); + const Babl *space = gegl_operation_get_source_space (operation, "input"); + gegl_operation_set_format (operation, "input", babl_format_with_space ("Y float", space)); + gegl_operation_set_format (operation, "output", babl_format_with_space ("Y float", space)); } static GeglRectangle