[gimp/goat-invasion: 89/325] 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/325] app: flush the drawable_s write_buffer in gimp_drawable_update()
- Date: Fri, 30 Mar 2012 09:41:44 +0000 (UTC)
commit 44f15dc342cd85637d20be9ddf29877ae9e6ee06
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]