app: fix crashing brain damage when getting the projection's buffer

Introduced when removing gimp_pickable_get_tiles().
This commit is contained in:
Michael Natterer 2012-05-09 15:30:30 +02:00
parent 8482fb9cf6
commit 8a53c7d29b
2 changed files with 4 additions and 11 deletions

View File

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

View File

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