[gegl] threshold: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] threshold: propagate BablSpace
- Date: Thu, 5 Jul 2018 20:02:24 +0000 (UTC)
commit c82aa06e8d864f098a07fcd1c2d47af6fc23dab4
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 22:01:49 2018 +0200
threshold: propagate BablSpace
operations/common/threshold.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/threshold.c b/operations/common/threshold.c
index c23fe25eb..b1810facd 100644
--- a/operations/common/threshold.c
+++ b/operations/common/threshold.c
@@ -37,9 +37,10 @@ property_double (value, _("Threshold"), 0.5)
static void prepare (GeglOperation *operation)
{
- gegl_operation_set_format (operation, "input", babl_format ("Y'A float"));
- gegl_operation_set_format (operation, "aux", babl_format ("Y' float"));
- gegl_operation_set_format (operation, "output", babl_format ("Y'A float"));
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ gegl_operation_set_format (operation, "input", babl_format_with_space ("Y'A 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 ("Y'A float", space));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]