- in legacy graphic engine, fixed issue with Delete shortcut key trying to delete twice

This commit is contained in:
Marius Stanciu
2019-09-23 17:52:34 +03:00
committed by Marius
parent ae7fec6dd1
commit b5e9997713
4 changed files with 23 additions and 2 deletions

View File

@@ -1474,7 +1474,11 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
try:
if aperture == 'all':
for apid in list(self.apertures.keys()):
self.mark_shapes[apid].clear(update=True)
if self.app.is_legacy is True:
self.mark_shapes[apid].clear(update=False)
else:
self.mark_shapes[apid].clear(update=True)
else:
self.mark_shapes[aperture].clear(update=True)
except Exception as e: