Workaround for incompatible changes in "LayerMoveTo" verbs
This commit is contained in:
parent
69f08a3e74
commit
27c72f28d0
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue