From 9b4e8ee275a8a7260b99b501fcfd7a6a88fecd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 6 Jul 2018 15:03:37 +0200 Subject: [PATCH] app: gimp:set-alpha propagate space --- app/operations/gimpoperationsetalpha.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/operations/gimpoperationsetalpha.c b/app/operations/gimpoperationsetalpha.c index b5431b3bd1..b41af3caa1 100644 --- a/app/operations/gimpoperationsetalpha.c +++ b/app/operations/gimpoperationsetalpha.c @@ -136,9 +136,10 @@ gimp_operation_set_alpha_set_property (GObject *object, static void gimp_operation_set_alpha_prepare (GeglOperation *operation) { - gegl_operation_set_format (operation, "input", babl_format ("RGBA float")); - gegl_operation_set_format (operation, "aux", babl_format ("Y float")); - gegl_operation_set_format (operation, "output", babl_format ("RGBA float")); + const Babl *space = gegl_operation_get_source_space (operation, "input"); + gegl_operation_set_format (operation, "input", babl_format_with_space ("RGBA float", space)); + gegl_operation_set_format (operation, "aux", babl_format_with_space ("Y float", space)); + gegl_operation_set_format (operation, "output", babl_format_with_space ("RGBA float", space)); } static gboolean