- in Gerber Editor fixed the issue where some shapes that belong to a deleted aperture were still stored inside the selection storage after this deletion

This commit is contained in:
Marius Stanciu
2021-09-24 22:38:21 +03:00
committed by Marius
parent 0854101297
commit 9ca397407c
2 changed files with 4 additions and 0 deletions

View File

@@ -3863,6 +3863,9 @@ class AppGerberEditor(QtCore.QObject):
self.tid2apcode.pop(deleted_tool, None)
self.oldapcode_newapcode.pop(deleted_aperture, None)
# delete any shape that was left in the selected storage from the deleted aperture
# that is required since to delete an aperture we need to first select it
self.selected[:] = []
if deleted_aperture not in self.storage_dict:
self.app.inform.emit('[success] %s: %s' % (_("Deleted aperture with code"), str(deleted_aperture)))
else: