[gimp/gimp-2-10] app: gimp:border propagate babl space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: gimp:border propagate babl space
- Date: Mon, 16 Jul 2018 11:40:20 +0000 (UTC)
commit b7ca5f19975a5584e9ce4607607c03e376cb5d9f
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jul 6 14:47:27 2018 +0200
app: gimp:border propagate babl space
app/operations/gimpoperationborder.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/operations/gimpoperationborder.c b/app/operations/gimpoperationborder.c
index 1bbb6b2c47..e08481ce20 100644
--- a/app/operations/gimpoperationborder.c
+++ b/app/operations/gimpoperationborder.c
@@ -200,8 +200,9 @@ gimp_operation_border_set_property (GObject *object,
static void
gimp_operation_border_prepare (GeglOperation *operation)
{
- gegl_operation_set_format (operation, "input", babl_format ("Y float"));
- gegl_operation_set_format (operation, "output", babl_format ("Y float"));
+ const Babl *space = gegl_operation_get_source_space (operation, "input");
+ gegl_operation_set_format (operation, "input", babl_format_with_space ("Y float", space));
+ gegl_operation_set_format (operation, "output", babl_format_with_space ("Y float", space));
}
static GeglRectangle
@@ -338,8 +339,8 @@ gimp_operation_border_process (GeglOperation *operation,
* them on jaycox gimp org
*/
GimpOperationBorder *self = GIMP_OPERATION_BORDER (operation);
- const Babl *input_format = babl_format ("Y float");
- const Babl *output_format = babl_format ("Y float");
+ const Babl *input_format = gegl_operation_get_format (operation, "input");
+ const Babl *output_format = gegl_operation_get_format (operation, "output");
gint32 i, j, x, y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]