diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-01-17 20:00:37 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-01-17 20:00:37 (GMT) |
commit | 9be5a5eaf51f230fe4befcaa8694c0edd295b4eb (patch) | |
tree | e15c8b399a96e62cc92be7da3a4b132d33c4ec29 | |
parent | ab1ace46a77d289d9cd5155fbb683ade0173a6ff (diff) |
fix problem with polygon fill involving arcs
-rw-r--r-- | TurtleArt/tacanvas.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index ed7bfb0..f355d4c 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -143,7 +143,9 @@ class TurtleGraphics: cr.new_path() for i, p in enumerate(poly_points): if p[0] == 'move': - cr.move_to(p[1], p[2]) + if i == len(poly_points) - 1 or \ + poly_points[i + 1][0] not in ['rarc', 'larc']: + cr.move_to(p[1], p[2]) elif p[0] == 'rarc': cr.arc(p[1], p[2], p[3], p[4], p[5]) elif p[0] == 'larc': |