소스 검색

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