app: gimp:border propagate babl space

This commit is contained in:
Øyvind Kolås
2018-07-06 14:47:27 +02:00
parent e13eb13bc4
commit b7ca5f1997

View File

@ -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;