[gimp/goat-invasion: 89/418] app: flush the drawable_s write_buffer in gimp_drawable_update()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 89/418] app: flush the drawable_s write_buffer in gimp_drawable_update()
- Date: Wed, 4 Apr 2012 10:33:16 +0000 (UTC)
commit 317184ad9cf505f963e8c7d4517c86831755fb2c
Author: Michael Natterer <mitch gimp org>
Date: Sat Mar 17 00:34:51 2012 +0100
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.
app/core/gimpdrawable.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index b8221be..13ee25a 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]