check for necessity of line on closing command

pull/4/head
derVedro 2016-10-09 07:45:42 +02:00
parent cd925078f7
commit f782b628ff
1 changed files with 2 additions and 1 deletions

View File

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