[gimp] Bug 610478 - Layer preview suddenly stops getting updated



commit c55753f2ad387ead2edbbfce8cd8f7f3751455b4
Author: Michael Natterer <mitch gimp org>
Date:   Fri Feb 19 20:59:25 2010 +0100

    Bug 610478 - Layer preview suddenly stops getting updated
    
    gimp_paint_core_finish(): when bailing out early because nothing was
    painted (e.g. because we repeatedly shift-click on the same pixel,
    which doesn't advance the interpolation distance), don't forget to
    call gimp_viewable_preview_thaw() or the drawable preview will be
    frozen forever.

 app/paint/gimppaintcore.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/paint/gimppaintcore.c b/app/paint/gimppaintcore.c
index f90b4de..c545faf 100644
--- a/app/paint/gimppaintcore.c
+++ b/app/paint/gimppaintcore.c
@@ -425,7 +425,10 @@ gimp_paint_core_finish (GimpPaintCore *core,
    *  if nothing has, then just return...
    */
   if ((core->x2 == core->x1) || (core->y2 == core->y1))
-    return;
+    {
+      gimp_viewable_preview_thaw (GIMP_VIEWABLE (drawable));
+      return;
+    }
 
   if (push_undo)
     {



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