From 455ac6fe34b02a367ddf8acd93ec5bd8c4df3a91 Mon Sep 17 00:00:00 2001 From: Frederik Berlaen Date: Fri, 8 Feb 2019 16:41:32 +0100 Subject: [PATCH] fixing altering dict inside loop fixed #27 --- Lib/defconAppKit/controls/glyphView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/defconAppKit/controls/glyphView.py b/Lib/defconAppKit/controls/glyphView.py index 1263eb4..0953385 100644 --- a/Lib/defconAppKit/controls/glyphView.py +++ b/Lib/defconAppKit/controls/glyphView.py @@ -415,7 +415,7 @@ def _populatePlacard(self): if len(layerSet.layerOrder) > 1: items.append(NSMenuItem.separatorItem()) # prep the state dictionary - for layerName in self._placardLayerOptions.keys(): + for layerName in list(self._placardLayerOptions.keys()): if layerName not in layerSet: del self._placardLayerOptions[layerName] for layerName in layerSet.layerOrder: