From b19047a8b3ef1a908e9e2177fd0ded98430a891e Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 6 May 2019 20:12:49 +0300 Subject: [PATCH] - fixed some bugs related to moving an Gerber object with the aperture table in view --- FlatCAMObj.py | 13 ++++++++++--- README.md | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index 6fe9a625..39a1dcfd 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -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() diff --git a/README.md b/README.md index 9d0be4e5..d4c633d4 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ CAD program, and create G-Code for Isolation routing. - made units change from shortcut key 'Q' not to affect the preferences - made units change from Edit -> Toggle Units not to affect the preferences - remade the way the aperture marks are plotted in Gerber Object +- fixed some bugs related to moving an Gerber object with the aperture table in view 5.05.2019