Fixed layer mixup when no layer was selected in Inkscape.
The Inkscape export would put objects into the wrong layers or miss objects completely when no layer was selected.
This commit is contained in:
parent
2ca55c2d17
commit
0c5b944686
1 changed files with 2 additions and 2 deletions
|
|
@ -72,8 +72,8 @@ class InkscapeCommandLine(object):
|
|||
|
||||
def _go_to_layer(self, layer, with_selection = False):
|
||||
if self._current_layer_index is None:
|
||||
# Initialize to a known state.
|
||||
self._current_layer_index = len(self._layers) - 1
|
||||
# Initialize to a known state. We cannot assume that any layer is selected and thus we need as many LayerPrev as we have layers.
|
||||
self._current_layer_index = len(self._layers)
|
||||
self._go_to_layer(self._layers[0])
|
||||
|
||||
target_index = self._layers.index(layer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue