app: gimp:threshold-alpha propagate babl space

This commit is contained in:
Øyvind Kolås 2018-07-06 15:09:18 +02:00
parent f3a757ff33
commit 11dd90eb89
1 changed files with 3 additions and 2 deletions

View File

@ -142,8 +142,9 @@ gimp_operation_threshold_alpha_set_property (GObject *object,
static void
gimp_operation_threshold_alpha_prepare (GeglOperation *operation)
{
gegl_operation_set_format (operation, "input", babl_format ("RGBA 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, "output", babl_format_with_space ("RGBA float", space));
}
static gboolean