- 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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user