mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 14:23:33 +00:00
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.
This commit is contained in:
parent
4d50c3aafd
commit
249041d927
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue