From 75f0610b8d7ff28e53e9260ac71d448111b1ab85 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 25 May 2011 12:49:36 +0000 Subject: group outline with fill polygon when saving as SVG --- 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 += '' 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 += '' def fill_polygon(self, poly_points): minx, miny, w, h = calc_poly_bounds(poly_points) -- cgit v0.9.1