浏览代码

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