- application wide change: introduced the precision parameters in Edit -> Preferences who will control how many decimals to use in the app parameters
This commit is contained in:
@@ -3009,7 +3009,8 @@ class FlatCAMExcEditor(QtCore.QObject):
|
||||
|
||||
# add a first tool in the Tool Table but only if the Excellon Object is empty
|
||||
if not self.tool2tooldia:
|
||||
self.on_tool_add(tooldia=float('%.2f' % float(self.app.defaults['excellon_editor_newdia'])))
|
||||
self.on_tool_add(tooldia=float('%.*f' % (self.decimals,
|
||||
float(self.app.defaults['excellon_editor_newdia']))))
|
||||
|
||||
def update_fcexcellon(self, exc_obj):
|
||||
"""
|
||||
|
||||
@@ -4959,7 +4959,7 @@ class FlatCAMGrbEditor(QtCore.QObject):
|
||||
|
||||
if float(upper_threshold_val) > area > float(lower_threshold_val):
|
||||
current_pos = geo_el.geo['solid'].exterior.coords[-1]
|
||||
text_elem = '%.4f' % area
|
||||
text_elem = '%.*f' % (self.decimals, area)
|
||||
text.append(text_elem)
|
||||
position.append(current_pos)
|
||||
self.geo_to_delete.append(geo_el)
|
||||
|
||||
Reference in New Issue
Block a user