[goocanvas/new-api] 2010-06-28 Damon Chaplin <damon gnome org>



commit bf3f0faf5102a4392b9157f71e7cdab4a2ac11b8
Author: Damon Chaplin <damon gnome org>
Date:   Mon Jun 28 12:16:54 2010 +0100

    2010-06-28  Damon Chaplin  <damon gnome org>
    
    	    * src/goocanvasgroup.c (goo_canvas_group_paint): use the scale
    	    argument rather than the canvas scale.

 ChangeLog            |    5 +++++
 src/goocanvasgroup.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 61211e2..0237317 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-06-28  Damon Chaplin  <damon gnome org>
 
+	* src/goocanvasgroup.c (goo_canvas_group_paint): use the scale
+	argument rather than the canvas scale.
+
+2010-06-28  Damon Chaplin  <damon gnome org>
+
 	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_property): 
 	handle setting "clip-path" to NULL to reset it.
 
diff --git a/src/goocanvasgroup.c b/src/goocanvasgroup.c
index 87f19de..bb3c68a 100644
--- a/src/goocanvasgroup.c
+++ b/src/goocanvasgroup.c
@@ -550,7 +550,7 @@ goo_canvas_group_paint (GooCanvasItem         *item,
   /* Check if the item should be visible. */
   if (simple->visibility <= GOO_CANVAS_ITEM_INVISIBLE
       || (simple->visibility == GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD
-	  && simple->canvas->scale < simple->visibility_threshold))
+	  && scale < simple->visibility_threshold))
     return;
 
   /* Paint all the items in the group. */



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