[gegl] vignette: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] vignette: propagate BablSpace
- Date: Thu, 5 Jul 2018 20:34:48 +0000 (UTC)
commit 16a497ea60eae8412efb488e7c2408d58f91a3c8
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 22:34:18 2018 +0200
vignette: propagate BablSpace
operations/common/vignette.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/vignette.c b/operations/common/vignette.c
index a3ab0e11b..1ef571da1 100644
--- a/operations/common/vignette.c
+++ b/operations/common/vignette.c
@@ -85,8 +85,9 @@ property_double (rotation, _("Rotation"), 0.0)
static void
prepare (GeglOperation *operation)
{
- gegl_operation_set_format (operation, "input", babl_format ("RaGaBaA float"));
- gegl_operation_set_format (operation, "output", babl_format ("RaGaBaA float"));
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ gegl_operation_set_format (operation, "input", babl_format_with_space ("RaGaBaA float", space));
+ gegl_operation_set_format (operation, "output", babl_format_with_space ("RaGaBaA float", space));
}
/* conversion function mapping between scale and aspect
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]