- fixed bug in Gerber Editor -> selection area handler where if some of the selected shapes did not had the 'solid' geometry will silently abort selection of further shapes

This commit is contained in:
Marius Stanciu
2019-09-19 17:10:53 +03:00
parent f54568e9eb
commit 351da24ded
2 changed files with 5 additions and 5 deletions

View File

@@ -4286,8 +4286,8 @@ class FlatCAMGrbEditor(QtCore.QObject):
self.app.delete_selection_shape()
for storage in self.storage_dict:
try:
for obj in self.storage_dict[storage]['geometry']:
for obj in self.storage_dict[storage]['geometry']:
if 'solid' in obj.geo:
geometric_data = obj.geo['solid']
if (sel_type is True and poly_selection.contains(geometric_data)) or \
(sel_type is False and poly_selection.intersects(geometric_data)):
@@ -4301,8 +4301,7 @@ class FlatCAMGrbEditor(QtCore.QObject):
else:
self.selected.append(obj)
sel_aperture.add(storage)
except KeyError:
pass
try:
self.apertures_table.cellPressed.disconnect()
except Exception as e: