diff --git a/CHANGELOG.md b/CHANGELOG.md index 386ee004..0ed09f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta 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 +- some changes in the Excellon object suggessted by an user: Karl-Heinz 5.01.2022 diff --git a/appObjects/FlatCAMExcellon.py b/appObjects/FlatCAMExcellon.py index 844c5af1..820691fb 100644 --- a/appObjects/FlatCAMExcellon.py +++ b/appObjects/FlatCAMExcellon.py @@ -1178,12 +1178,18 @@ class ExcellonObject(FlatCAMObj, Excellon): for tool_key in self.tools: # find the geo_plugin_table row associated with the tool_key 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): check_row = row break 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.ui_connect()