- some changes in the Excellon object suggessted by an user: Karl-Heinz

This commit is contained in:
Marius Stanciu
2022-01-06 17:48:00 +02:00
committed by Marius
parent 8f8bff3e4f
commit 518bedc78d
2 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
6.01.2022 6.01.2022
- modified the 'laser-lines' method in the Paint Plugin such that the rounded part of a painted trace is painted too in the case that the trace width is much higher than the clearing tool diameter - modified the 'laser-lines' method in the Paint Plugin such that the rounded part of a painted trace is painted too in the case that the trace width is much higher than the clearing tool diameter
- some changes in the Excellon object suggessted by an user: Karl-Heinz
5.01.2022 5.01.2022

View File

@@ -1178,12 +1178,18 @@ class ExcellonObject(FlatCAMObj, Excellon):
for tool_key in self.tools: for tool_key in self.tools:
# find the geo_plugin_table row associated with the tool_key # find the geo_plugin_table row associated with the tool_key
for row in range(self.ui.tools_table.rowCount()): for row in range(self.ui.tools_table.rowCount()):
tool_item = int(self.ui.tools_table.item(row, 0).text()) tool_item = int(float(self.ui.tools_table.item(row, 0).text()))
if tool_item == int(tool_key): if tool_item == int(tool_key):
check_row = row check_row = row
break break
state = self.ui.tools_table.cellWidget(check_row, 5).isChecked() state = self.ui.tools_table.cellWidget(check_row, 5).isChecked()
self.shapes.update_visibility(state, indexes=self.shape_indexes_dict[tool_key]) try:
# suggested by an user that may fix issues when run in Linux
# I don't see the reason for the .copy() but ...
#TODO may need removal of the .copy() method if the reason is not found
self.shapes.update_visibility(state, indexes=self.shape_indexes_dict[tool_key]).copy()
except Exception:
pass
self.shapes.redraw() self.shapes.redraw()
self.ui_connect() self.ui_connect()