- fixed issue in Tool Calculators when a float value was entered starting only with the dot.

- added protection for entering incorrect values in Offset and Scale fields for Gerber and Geometry objects (in Selected Tab)
This commit is contained in:
Marius Stanciu
2019-01-29 01:03:21 +02:00
committed by Marius S
parent c80271935e
commit f6271033b3
5 changed files with 47 additions and 5 deletions

View File

@@ -157,7 +157,7 @@ class ToolCalculator(FlatCAMTool):
tip_diameter = float(self.tipDia_entry.get_value())
half_tip_angle = float(self.tipAngle_entry.get_value()) / 2
cut_depth = float(self.cutDepth_entry.get_value())
except TypeError:
except:
return
tool_diameter = tip_diameter + (2 * cut_depth * math.tan(math.radians(half_tip_angle)))