check for necessity of line on closing command
parent
cd925078f7
commit
f782b628ff
|
@ -76,6 +76,7 @@ def parse_path(pathdef, current_pos=0j):
|
|||
|
||||
elif command == 'Z':
|
||||
# Close path
|
||||
if not (current_pos == start_pos):
|
||||
segments.append(Line(current_pos, start_pos))
|
||||
segments.closed = True
|
||||
current_pos = start_pos
|
||||
|
|
Loading…
Reference in New Issue