Просмотр исходного кода

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

Marius Stanciu 6 лет назад
Родитель
Сommit
ae775b520e
2 измененных файлов с 10 добавлено и 2 удалено
  1. 5 1
      README.md
  2. 5 1
      flatcamEditors/FlatCAMGrbEditor.py

+ 5 - 1
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
 

+ 5 - 1
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')