[gimp/metadata-browser] app: flush the drawable_s write_buffer in gimp_drawable_update()



commit 73b77bb68af36cbea454a3c51a2121058214ea75
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]