- fixed an error in Gerber parser, when it encounter a pen-up followed by pen-down move while in a region

This commit is contained in:
Marius Stanciu 2020-11-03 17:36:10 +02:00 committed by Marius
parent 13e4d7bad7
commit 77c66862c5
2 changed files with 33 additions and 27 deletions

View File

@ -19,6 +19,7 @@ CHANGELOG for FlatCAM beta
- updated Turkish translation (by Mehmet Kaya)
- in NCC and Isolation Tools, the Validity Checking of the tools is now multithreaded when the Check Validity UI control is checked
- translation strings updated
- fixed an error in Gerber parser, when it encounter a pen-up followed by pen-down move while in a region
2.11.2020

View File

@ -953,6 +953,11 @@ class Gerber(Geometry):
# Reset path starting point
path = [[current_x, current_y]]
# treat the case when there is a flash inside a Gerber Region when the current_aperture
# is None
if current_aperture is None:
pass
else:
# --- BUFFERED ---
# Draw the flash
# this treats the case when we are storing geometry as paths