From 9ca397407c972948066450932a91f57c1590e14f Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 24 Sep 2021 22:38:21 +0300 Subject: [PATCH] - 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 --- CHANGELOG.md | 1 + appEditors/AppGerberEditor.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 068a8744..b9606d7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ CHANGELOG for FlatCAM beta - in Gerber Editor fixed not being able to delete an aperture - in Gerber Editor fixed the edge case where the user selects apertures in the Tools Table and then uses the Poligonize Tool and not by selecting shapes on canvas - in Cutout Plugin remade the UI and fixed different issues +- 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 21.09.2021 diff --git a/appEditors/AppGerberEditor.py b/appEditors/AppGerberEditor.py index 6efa26f9..2a4d6cb6 100644 --- a/appEditors/AppGerberEditor.py +++ b/appEditors/AppGerberEditor.py @@ -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: