- fixed the Gerber parser such that when it encounter an aperture with size 0.0 it will replace it with the smallest number that is still displayed which is (10 ** -self.decimals); previously it replaced with a too small number (1e-12)

This commit is contained in:
Marius Stanciu
2020-11-19 23:00:36 +02:00
committed by Marius
parent fb5fdff1cd
commit f032528025
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta
- cleaned up the Geometry Properties UI
- in Geometry Properties UI restored the plot functionality
- in Tool Cutout fixed issues when using a negative value for the Margin parameter when the cutout object is a Gerber object
- fixed the Gerber parser such that when it encounter an aperture with size 0.0 it will replace it with the smallest number that is still displayed which is (10 ** -self.decimals); previously it replaced with a too small number (1e-12)
17.11.2020

View File

@@ -718,7 +718,7 @@ class Gerber(Geometry):
# we should not test for "size" key as it does not exist in this case.
if self.apertures[current_aperture]["type"] != "AM":
if self.apertures[current_aperture]["size"] == 0:
self.apertures[current_aperture]["size"] = 1e-12
self.apertures[current_aperture]["size"] = 10 ** -self.decimals
# log.debug(self.apertures[current_aperture])
# Take care of the current path with the previous tool