- 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

@@ -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))