[gegl] color-rotate: propagate BablSpace
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] color-rotate: propagate BablSpace
- Date: Thu, 5 Jul 2018 13:05:30 +0000 (UTC)
commit e1db59326c23c29f1f834c6210eaeb40ab9892f0
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 15:04:56 2018 +0200
color-rotate: propagate BablSpace
operations/common/color-rotate.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/color-rotate.c b/operations/common/color-rotate.c
index 9ae3a03a6..3bf0e980d 100644
--- a/operations/common/color-rotate.c
+++ b/operations/common/color-rotate.c
@@ -99,13 +99,14 @@ property_double (saturation, _("Saturation"), 0.0)
static void
prepare (GeglOperation *operation)
{
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
/* gamma-corrected RGB because that's what the HSV conversion
* functions expect
*/
gegl_operation_set_format (operation, "input",
- babl_format ("R'G'B'A float"));
+ babl_format_with_space ("R~G~B~A float", space));
gegl_operation_set_format (operation, "output",
- babl_format ("R'G'B'A float"));
+ babl_format_with_space ("R~G~B~A float", space));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]