diff options
author | jaseg <git@jaseg.de> | 2022-01-22 19:26:48 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-22 19:26:48 +0100 |
commit | 242f4033c661d70c0d2722050370307f4d9b678a (patch) | |
tree | 9076a1d0f45a76c49a465f74903071671006b6de /gerbonara/gerber/cam.py | |
parent | 7cf41c6a72e52a63b4f4d4497732a72d6623eec8 (diff) | |
download | gerbonara-242f4033c661d70c0d2722050370307f4d9b678a.tar.gz gerbonara-242f4033c661d70c0d2722050370307f4d9b678a.tar.bz2 gerbonara-242f4033c661d70c0d2722050370307f4d9b678a.zip |
Make excellon tests pass
Diffstat (limited to 'gerbonara/gerber/cam.py')
-rw-r--r-- | gerbonara/gerber/cam.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gerbonara/gerber/cam.py b/gerbonara/gerber/cam.py index bbcd042..9c9baf0 100644 --- a/gerbonara/gerber/cam.py +++ b/gerbonara/gerber/cam.py @@ -80,6 +80,10 @@ class FileSettings: if '.' in value: return float(value) + # TARGET3001! exports zeros as "00" even when it uses an explicit decimal point everywhere else. + if int(value) == 0: + return 0 + # Format precision integer_digits, decimal_digits = self.number_format if integer_digits is None or decimal_digits is None: |