diff --git a/inkscape/svg2shenzhen/prepare.py b/inkscape/svg2shenzhen/prepare.py index 507cf43..ee3731c 100644 --- a/inkscape/svg2shenzhen/prepare.py +++ b/inkscape/svg2shenzhen/prepare.py @@ -169,7 +169,9 @@ def prepareDocument(self, options): white_layer.append(rect) # Create the Selected Layers - for key, value in reversed(kicadLayers.items()): + kicadLayersArray = list(kicadLayers.items()); + + for key, value in reversed(kicadLayersArray): disabledValue = '%s-disabled' % (value) selectedValue = getattr(options, key) if selectedValue == "true" and value not in layers and disabledValue not in layers: