Commit 198279fd authored by Taddeüs Kroes's avatar Taddeüs Kroes

Minor improvement to drawing offset.

parent 28fbf26a
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment