Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tacanvas.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tacanvas.py')
-rw-r--r--TurtleArt/tacanvas.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py
index 0e22838..bf866fb 100644
--- a/TurtleArt/tacanvas.py
+++ b/TurtleArt/tacanvas.py
@@ -158,6 +158,8 @@ class TurtleGraphics:
""" Start accumulating points of a polygon to fill. """
self.fill = True
self.poly_points = []
+ if self.tw.saving_svg:
+ self.tw.svg_string += '<g>'
def stop_fill(self):
""" Fill the polygon. """
@@ -174,6 +176,8 @@ class TurtleGraphics:
shared_poly_points]))
self.tw.send_event(event)
self.poly_points = []
+ if self.tw.saving_svg:
+ self.tw.svg_string += '</g>'
def fill_polygon(self, poly_points):
minx, miny, w, h = calc_poly_bounds(poly_points)