[gimp] app: gimp:border propagate babl space
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: gimp:border propagate babl space
- Date: Fri, 6 Jul 2018 12:49:29 +0000 (UTC)
commit 5e8a5cf9996a0e2e44108f8ef4b8d87d35f75119
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 377fc4b669..eba59ab3e6 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]