mirror of https://github.com/GNOME/gimp.git
app: fix crashing brain damage when getting the projection's buffer
Introduced when removing gimp_pickable_get_tiles().
This commit is contained in:
parent
8482fb9cf6
commit
8a53c7d29b
|
@ -254,7 +254,7 @@ gimp_projection_initialize (GimpProjection *proj,
|
|||
|
||||
if (! coverage)
|
||||
{
|
||||
GeglBuffer *buffer;
|
||||
GeglBuffer *buffer;
|
||||
|
||||
if (proj->use_gegl)
|
||||
{
|
||||
|
@ -264,11 +264,8 @@ gimp_projection_initialize (GimpProjection *proj,
|
|||
}
|
||||
else
|
||||
{
|
||||
GeglBuffer *buffer = gimp_pickable_get_buffer (GIMP_PICKABLE (proj));
|
||||
TileManager *tiles = gimp_gegl_buffer_get_tiles (buffer);
|
||||
const Babl *format = gimp_pickable_get_format (GIMP_PICKABLE (proj));
|
||||
|
||||
buffer = gimp_tile_manager_create_buffer (tiles, format);
|
||||
buffer = gimp_pickable_get_buffer (GIMP_PICKABLE (proj));
|
||||
g_object_ref (buffer);
|
||||
}
|
||||
|
||||
gegl_buffer_clear (buffer, GEGL_RECTANGLE (x, y, w, h));
|
||||
|
|
|
@ -312,12 +312,8 @@ gimp_projection_get_buffer (GimpPickable *pickable)
|
|||
|
||||
if (proj->sink_node)
|
||||
{
|
||||
GeglBuffer *buffer;
|
||||
|
||||
buffer = gimp_projection_get_buffer (GIMP_PICKABLE (proj));
|
||||
|
||||
gegl_node_set (proj->sink_node,
|
||||
"buffer", buffer,
|
||||
"buffer", proj->buffer,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue