- added a protection for the case that the aperture table is part of a deleted object

This commit is contained in:
Marius Stanciu
2019-05-05 18:21:58 +03:00
parent 41956d68d6
commit ae775b520e
2 changed files with 10 additions and 2 deletions

View File

@@ -1582,7 +1582,11 @@ class FCApertureSelect(DrawTool):
# bending modes using in FCRegion and FCTrack
self.draw_app.bend_mode = 1
self.grb_editor_app.apertures_table.clearSelection()
try:
self.grb_editor_app.apertures_table.clearSelection()
except Exception as e:
log.error("FlatCAMGerbEditor.FCApertureSelect.__init__() --> %s" % str(e))
self.grb_editor_app.hide_tool('all')
self.grb_editor_app.hide_tool('select')