From f932036fb57a9ac88ecbf669c7500e1fbb7e418b Mon Sep 17 00:00:00 2001 From: mdejean Date: Sat, 2 Jun 2018 03:49:49 -0400 Subject: [PATCH] After Z, next subpath starts at same position (#53) * After Z, next subpath starts at same position Fixes #52 * removed old comment to mirror new behavior --- svgpathtools/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/svgpathtools/parser.py b/svgpathtools/parser.py index 66147b8..2548448 100644 --- a/svgpathtools/parser.py +++ b/svgpathtools/parser.py @@ -80,8 +80,7 @@ def parse_path(pathdef, current_pos=0j): segments.append(Line(current_pos, start_pos)) segments.closed = True current_pos = start_pos - start_pos = None - command = None # You can't have implicit commands after closing. + command = None elif command == 'L': x = elements.pop()