Merge pull request #4 from derVedro/issue-1

check for necessity of line on closing command
pull/5/head
Andy Port 2016-10-09 14:59:48 -07:00 committed by GitHub
commit a69d9f71b7
1 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ def parse_path(pathdef, current_pos=0j):
elif command == 'Z': elif command == 'Z':
# Close path # Close path
if not (current_pos == start_pos):
segments.append(Line(current_pos, start_pos)) segments.append(Line(current_pos, start_pos))
segments.closed = True segments.closed = True
current_pos = start_pos current_pos = start_pos