Current layer lost when undoing extension function
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Inkscape 0.92.3
Tested on :
OS X 10.11.6 (El Capitan)
Linux Mint 18.2 Cinnamon Kernel 4.13.0.45
When you undo (Ctrl-Z) a change produced by an effect extension, the inkscape:
attribute of the <sodipodi-
<svg:svg> element and the current layer is lost.
To reproduce the problem :
- Open a new Inkscape session
- Display the layer window (layers->layers)
- Notice that the current layer is selected
- open extentions-
- click OK and then Close : a triangle has been drawn and the current layer is still selected
- press <CTRL-Z> to undo : the triangle disappear correctly but no more layer is selected in the layer window
- open again extentions-
- a new triangle is drawn but looking in the XML Editor window, the inkscape:
Investigating (building a simple extension), I noticed that the second time an effect extension is called while no layer is selected, the temporary SVG file passed to the extension has a current-layer attribute set to the <svg:svg> id attribute value.
This sounds like a bug, doesn't it ?
confirmed on Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11)
got the same behavior running the extension Render->Calendar