- fixed some bugs related to moving an Gerber object with the aperture table in view

This commit is contained in:
Marius Stanciu
2019-05-06 20:12:49 +03:00
parent d35ae3a39a
commit b19047a8b3
2 changed files with 11 additions and 3 deletions

View File

@@ -1187,11 +1187,18 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
self.marked_rows[:] = []
def on_mark_cb_click_table(self):
"""
Will mark aperture geometries on canvas or delete the markings depending on the checkbox state
:return:
"""
self.ui_disconnect()
cw = self.sender()
cw_index = self.ui.apertures_table.indexAt(cw.pos())
cw_row = cw_index.row()
check_row = 0
try:
cw_index = self.ui.apertures_table.indexAt(cw.pos())
cw_row = cw_index.row()
except AttributeError:
cw_row = 0
self.marked_rows[:] = []
aperture = self.ui.apertures_table.item(cw_row, 1).text()