Commit 249041d9 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

Bug 732698 - Select > Shrink/Grow/Border not working in GIMP master

Always pass level = 0 to gegl_buffer_set(). This actually makes a
difference since GEGL's level processing got some fixes.
parent 4d50c3aa
......@@ -406,7 +406,7 @@ gimp_operation_border_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y,
roi->width, 1),
1.0, output_format, transition,
0, output_format, transition,
GEGL_AUTO_ROWSTRIDE);
for (y = 1; y < roi->height; y++)
......@@ -441,7 +441,7 @@ gimp_operation_border_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y + y,
roi->width, 1),
1.0, output_format, transition,
0, output_format, transition,
GEGL_AUTO_ROWSTRIDE);
}
......@@ -713,7 +713,7 @@ gimp_operation_border_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y + y,
roi->width, 1),
1.0, output_format, out,
0, output_format, out,
GEGL_AUTO_ROWSTRIDE);
}
......
......@@ -367,7 +367,7 @@ gimp_operation_grow_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y + y,
roi->width, 1),
1.0, output_format, out,
0, output_format, out,
GEGL_AUTO_ROWSTRIDE);
}
......
......@@ -307,7 +307,7 @@ gimp_operation_shapeburst_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y + y,
roi->width, 1),
1.0, output_format, distbuf_cur,
0, output_format, distbuf_cur,
GEGL_AUTO_ROWSTRIDE);
g_object_set (operation,
......
......@@ -418,7 +418,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
gegl_buffer_set (output,
GEGL_RECTANGLE (roi->x, roi->y + y,
roi->width, 1),
1.0, output_format, out,
0, output_format, out,
GEGL_AUTO_ROWSTRIDE);
}
......
......@@ -684,7 +684,7 @@ drawable_set_pixel_invoker (GimpProcedure *procedure,
{
gegl_buffer_set (gimp_drawable_get_buffer (drawable),
GEGL_RECTANGLE (x_coord, y_coord, 1, 1),
1.0, format, pixel, GEGL_AUTO_ROWSTRIDE);
0, format, pixel, GEGL_AUTO_ROWSTRIDE);
}
else
success = FALSE;
......
......@@ -692,7 +692,7 @@ HELP
{
gegl_buffer_set (gimp_drawable_get_buffer (drawable),
GEGL_RECTANGLE (x_coord, y_coord, 1, 1),
1.0, format, pixel, GEGL_AUTO_ROWSTRIDE);
0, format, pixel, GEGL_AUTO_ROWSTRIDE);
}
else
success = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment