Skip to content
Snippets Groups Projects
Commit 198279fd authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Minor improvement to drawing offset.

parent 28fbf26a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment