diff --git a/CHANGELOG.md b/CHANGELOG.md index e8ca1c81..6335fe23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta ================================================= +05.05.2023 + +- fixed an erroneous opening for a Gerber file generated by KiCAD 6.0.11, due of a rectangular flash being eliminated by the global unary_union operation + 15.04.2023 - changed the shapely imports a bit according to the specifications of Shapely 2.0 diff --git a/appParsers/ParseGerber.py b/appParsers/ParseGerber.py index a075cfbc..20197721 100644 --- a/appParsers/ParseGerber.py +++ b/appParsers/ParseGerber.py @@ -681,7 +681,7 @@ class Gerber(Geometry): # ################################################################ if current_macro is None: # No macro started yet match = self.am1_re.search(gline) - # Start macro if match, else not an AM, carry on. + # Start macro if there is a match, else not an AM, carry on. if match: self.app.log.debug("Starting macro. Line %d: %s" % (line_num, gline)) current_macro = match.group(1) @@ -1806,7 +1806,7 @@ class Gerber(Geometry): maxx = loc[0] + width / 2 miny = loc[1] - height / 2 maxy = loc[1] + height / 2 - return shply_box(minx, miny, maxx, maxy) + return shply_box(minx, miny, maxx, maxy).buffer(0.0000001) if aperture['type'] == 'O': # Obround loc = location.coords[0]