[gimp] app: clear current path from the context after copying it



commit 71bedb0ccd521ba7b5839ebb758e730b6a654a70
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Thu May 26 19:28:47 2011 +0200

    app: clear current path from the context after copying it
    
    otherwise the first time it is drawn twice.

 app/widgets/gimpcairo-wilber.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcairo-wilber.c b/app/widgets/gimpcairo-wilber.c
index 372aace..dbfead1 100644
--- a/app/widgets/gimpcairo-wilber.c
+++ b/app/widgets/gimpcairo-wilber.c
@@ -98,6 +98,7 @@ wilber_get_extents (cairo_t *cr)
       cairo_fill_extents (cr, &wilber_x1, &wilber_y1, &wilber_x2, &wilber_y2);
 
       wilber_cairo_path = cairo_copy_path (cr);
+      cairo_new_path (cr);
 
       cairo_restore (cr);
     }



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