'Live Preview' toggle unsets current layer if nothing is selected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
If used without a current selection, the 'Live Preview' toggle in the extension dialogs unsets the current layer (making 'root' current drawing level instead). This may cause that a newly created object actually is created in 'root' (after having previewed a render effect), or that previewing e.g. a color effect with scope 'whole drawing' (nothing selected) will switch the current layer to 'root' without notifying the user.
Steps to reproduce:
1) draw an object
2) open 'Extensions > Color > Randomize…'
3) select object, toggle live preview on & off again
--> current layer is unchanged
4) unselect all, toggle live preview on & off again
--> current layer is switched to 'root'
or:
1) open new document
2) open 'Extensions > Render > Gear…'
3) toggle live preview on & off again
--> current layer is changed to 'root'
4) apply the affect
--> gear is created in 'root'
Since 'root' is outside the layer structure, this can cause issues later-on - objects may be created in 'root' without the user realizing it (some objects no longer hide when hiding layers), and fixing this is not obvious either (because 'root' is "excluded" or "hidden" from the layer UI options, unless one resorts to the XML Editor).
Reproduced with Inkscape 0.47, 0.48.3.1 and 0.48+devel r11927 on OS X 10.7.4.
Attaching minimal test case (extension which reports current date, and the number of selected objects)