- fixed bug in camlib.Gerber.parse_lines() Gerber parser where for Allegro Gerber files the Gerber units were incorrectly detected

This commit is contained in:
Marius Stanciu 2019-08-12 23:27:14 +03:00
parent cac92f75f2
commit 04bc1ba013
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing.
- the 'passes' entry was changed to a IntSpinner so it will allow passes to be entered only in range (1, 999) - it will not allow entry of 0 which may create some issues
- improved the FlatCAMGerber.isolate() function to work for geometry in the form of list and also in case that the elements of the list are LinearRings (like when doing the Exterior Isolation)
- in NCC Tool made sure that at each run the old objects are deleted
- fixed bug in camlib.Gerber.parse_lines() Gerber parser where for Allegro Gerber files the Gerber units were incorrectly detected
11.08.2019

View File

@ -2358,7 +2358,7 @@ class Gerber (Geometry):
"D-no zero suppression)" % self.gerber_zeros)
log.debug("Gerber format found. Coordinates type = %s (Absolute or Relative)" % absolute)
self.gerber_units = match.group(1)
self.gerber_units = match.group(5)
log.debug("Gerber units found = %s" % self.gerber_units)
# Changed for issue #80
self.convert_units(match.group(5))