[gimp/goat-invasion: 89/526] 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/526] app: flush the drawable_s write_buffer in gimp_drawable_update()
- Date: Sun, 22 Apr 2012 13:06:45 +0000 (UTC)
commit ff95e2b3ebefabfc635e96f18cebac6662e883f8
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]