summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/inkscape/inkscape.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/support/inkscape/inkscape.py b/support/inkscape/inkscape.py
index 3a25a15..9fd9528 100644
--- a/support/inkscape/inkscape.py
+++ b/support/inkscape/inkscape.py
@@ -106,8 +106,11 @@ class InkscapeCommandLine(object):
# Inkscape 0.91 places a duplicated layer above (after) the selected
# one and selects the new layer.
new_layer = Layer(layer.inkscape_name + ' copy', layer.export_name, layer.use_paths)
- self._current_layer_index += 1
- self._layers.insert(self._current_layer_index, new_layer)
+ self._layers.insert(self._current_layer_index + 1, new_layer)
+
+ # Whether the original or the new layer is selected after the operation
+ # fluctuates between Inkscape versions.
+ self._current_layer_index = None
return new_layer