[gimp/goat-invasion: 220/325] app: flush and refetch the shadow buffer before handing it out



commit a6c8bc089e9e144c3d6844f969ffda1c36935c7b
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]