app: replace direct low-level GeglBuffer calls with utility.
gimp_drawable_real_update exists, so use it
This commit is contained in:

committed by
Michael Natterer

parent
ef3cfb48cc
commit
1ee041600f
@ -767,7 +767,7 @@ gimp_drawable_real_update (GimpDrawable *drawable,
|
|||||||
|
|
||||||
if (buffer)
|
if (buffer)
|
||||||
{
|
{
|
||||||
gegl_tile_source_reinit (GEGL_TILE_SOURCE (buffer));
|
gimp_gegl_buffer_refetch_tiles (buffer);
|
||||||
g_object_unref (buffer);
|
g_object_unref (buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -810,7 +810,7 @@ gimp_projection_invalidate (GimpProjection *proj,
|
|||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* makes the buffer drop all GimpTiles */
|
/* makes the buffer drop all GimpTiles */
|
||||||
gegl_tile_source_reinit ((void*)buffer);
|
gimp_gegl_buffer_refetch_tiles (buffer);
|
||||||
g_object_unref (buffer);
|
g_object_unref (buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user