[gegl] stretch-contrast-hsv: propagate space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] stretch-contrast-hsv: propagate space
- Date: Thu, 5 Jul 2018 20:58:49 +0000 (UTC)
commit a571af73c1e7aece0f42c2f088f00dcdd373b1e3
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jul 5 22:58:24 2018 +0200
stretch-contrast-hsv: propagate space
operations/common/stretch-contrast-hsv.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/stretch-contrast-hsv.c b/operations/common/stretch-contrast-hsv.c
index 673d82554..564e40db0 100644
--- a/operations/common/stretch-contrast-hsv.c
+++ b/operations/common/stretch-contrast-hsv.c
@@ -115,8 +115,9 @@ clean_autostretch_data (AutostretchData *data)
static void
prepare (GeglOperation *operation)
{
- gegl_operation_set_format (operation, "input", babl_format ("HSVA float"));
- gegl_operation_set_format (operation, "output", babl_format ("HSVA float"));
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ gegl_operation_set_format (operation, "input", babl_format_with_space ("HSVA float", space));
+ gegl_operation_set_format (operation, "output", babl_format_with_space ("HSVA float", space));
}
static GeglRectangle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]