Browse Source

Fixed faulty drawing offset.

Taddeus Kroes 13 năm trước cách đây
mục cha
commit
562b0cf0c2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/testapp.py

+ 1 - 1
tests/testapp.py

@@ -102,7 +102,7 @@ class Polygon(BoundingBoxArea):
             cr.stroke()
 
         # Fill polygon
-        rx, ry = self.get_root_offset()
+        rx, ry = self.get_offset(root)
         cr.translate(rx, ry)
         cr.new_path()