Преглед изворни кода

Minor improvement to drawing offset.

Taddeus Kroes пре 13 година
родитељ
комит
198279fd12
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      tests/testapp.py

+ 2 - 1
tests/testapp.py

@@ -76,7 +76,8 @@ class Polygon(BoundingBoxArea):
             cr.stroke()
             cr.stroke()
 
 
         # Fill polygon
         # Fill polygon
-        cr.translate(self.x, self.y)
+        rx, ry = self.get_root_offset()
+        cr.translate(rx, ry)
         cr.new_path()
         cr.new_path()
 
 
         for x, y in zip(*self.points):
         for x, y in zip(*self.points):