- fixed bug in Gerber parser that made the Gerber files generated by Altium Designer 18 not to be loaded

This commit is contained in:
Marius Stanciu
2019-06-15 17:20:38 +03:00
parent a106472900
commit 1b0cf14ef7
4 changed files with 12 additions and 9 deletions

View File

@@ -2452,7 +2452,6 @@ class Gerber (Geometry):
# --- Buffered ---
try:
log.debug("Bare op-code %d." % current_operation_code)
geo_dict = dict()
flash = self.create_flash_geometry(
Point(current_x, current_y), self.apertures[current_aperture],
@@ -2467,7 +2466,7 @@ class Gerber (Geometry):
else:
geo_dict['solid'] = flash
if last_path_aperture not in self.apertures:
if current_aperture not in self.apertures:
self.apertures[current_aperture] = dict()
if 'geometry' not in self.apertures[current_aperture]:
self.apertures[current_aperture]['geometry'] = []