From ae775b520e9daade71fde638135b9fde6f5f45d1 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 5 May 2019 18:21:58 +0300 Subject: [PATCH] - added a protection for the case that the aperture table is part of a deleted object --- README.md | 6 +++++- flatcamEditors/FlatCAMGrbEditor.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 840bb778..6415acc3 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,17 @@ CAD program, and create G-Code for Isolation routing. ================================================= +5.05.2019 + +- another fix for bug in clear geometry processing for Gerber apertures +- added a protection for the case that the aperture table is part of a deleted object + 4.05.2019 - fixed bug in camlib.parse_lines() in the clear_geometry processing section for self.apertures - fixed bug in parsing Gerber regions (a point was added unnecessary) - renamed the menu entry Edit -> Copy as Geo to Convert Any to Geo and moved it in the Edit -> Conversion - created a new function named Convert Any to Gerber and installed it in Edit -> Conversion. It's doing what the name say: it will convert an Geometry or Excellon FlatCAM object to a Gerber object. -- another fix for bug in clear geometry processing for Gerber apertures 01.05.2019 diff --git a/flatcamEditors/FlatCAMGrbEditor.py b/flatcamEditors/FlatCAMGrbEditor.py index 778cb294..1b47c986 100644 --- a/flatcamEditors/FlatCAMGrbEditor.py +++ b/flatcamEditors/FlatCAMGrbEditor.py @@ -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')