ソースを参照

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()
 
         # 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):