Explorar o código

Minor improvement to drawing offset.

Taddeus Kroes %!s(int64=13) %!d(string=hai) anos
pai
achega
198279fd12
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tests/testapp.py

+ 2 - 1
tests/testapp.py

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