[gimp] app: flush and refetch the shadow buffer before handing it out



commit d2506e43bc95037e58f27ba4c88f5fe66dcb7775
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 22 19:16:07 2012 +0100

    app: flush and refetch the shadow buffer before handing it out

 app/core/gimpdrawable-shadow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpdrawable-shadow.c b/app/core/gimpdrawable-shadow.c
index 96b1d10..78bcc72 100644
--- a/app/core/gimpdrawable-shadow.c
+++ b/app/core/gimpdrawable-shadow.c
@@ -54,6 +54,9 @@ gimp_drawable_get_shadow_buffer (GimpDrawable *drawable)
         }
       else
         {
+          gegl_buffer_flush (drawable->private->shadow);
+          gimp_gegl_buffer_refetch_tiles (drawable->private->shadow);
+
           return drawable->private->shadow;
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]