From 26d90a75296e557bd2788611cea6ae89162d1b65 Mon Sep 17 00:00:00 2001 From: Cynthia Gauthier Date: Tue, 15 Jun 2010 22:20:03 -0400 Subject: [PATCH] Fix a bug whereby a polyline's last segment could be removed from an SVG document if it was closing the polyline into a polygon. --- scour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scour.py b/scour.py index 3ba1095..b9f5355 100755 --- a/scour.py +++ b/scour.py @@ -2557,7 +2557,7 @@ def scourString(in_string, options=None): # scour points of polyline for polyline in doc.documentElement.getElementsByTagName('polyline') : - cleanPolygon(polyline, options) + cleanPolyline(polyline, options) # clean path data for elem in doc.documentElement.getElementsByTagName('path') :