[gimp/goat-invasion: 89/234] app: flush the drawable_s write_buffer in gimp_drawable_update()



commit 12988c341ee2bedeaefbb122bed8043278605895
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]