Merge pull request #4 from derVedro/issue-1
check for necessity of line on closing commandpull/5/head
commit
a69d9f71b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue