app: flush the drawable_s write_buffer in gimp_drawable_update()

because it's called after each drawable modification and therefore a
good place to sync buffrs and tiles.
This commit is contained in:
Michael Natterer 2012-03-17 00:34:51 +01:00
parent 8aabfb1779
commit 105aff0296
1 changed files with 3 additions and 0 deletions

View File

@ -1264,6 +1264,9 @@ gimp_drawable_update (GimpDrawable *drawable,
{
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
if (drawable->private->write_buffer)
gegl_buffer_flush (drawable->private->write_buffer);
g_signal_emit (drawable, gimp_drawable_signals[UPDATE], 0,
x, y, width, height);
}