Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tacanvas.py
diff options
context:
space:
mode:
Diffstat (limited to 'tacanvas.py')
-rw-r--r--tacanvas.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tacanvas.py b/tacanvas.py
index f317996..77e42ad 100644
--- a/tacanvas.py
+++ b/tacanvas.py
@@ -375,6 +375,8 @@ class TurtleGraphics:
self.pendown = self.tw.active_turtle.get_pen_state()
def svg_close(self):
+ if self.tw.svg_string == '':
+ return
self.svg.calc_w_h(False)
self.tw.svg_string = "%s%s%s%s" % (self.svg.header(True),
self.svg.background(self.bgcolor),