Symbols dialog: dependencies are not respected when adding nested symbols
Migrated from: https://bugs.launchpad.net/inkscape/+bug/1501271
Steps to reproduce:
- save test file testcase-lib.svg in inkscape/symbols
- open Inkscape
- open Symbols (Shift+Ctrl+Y)
- open symbol set testcase-lib
- drag the orange symbol on the canvas
- drag the yellow symbol on the canvas
What happened?
The yellow symbol appears twice: once at the position where it was dragged to and once inside the orange symbol. That's because the orange symbol references the yellow symbol in a use
tag. When dragging the orange symbol onto the canvas, only its definition is copied, and the clone becomes orphaned.
What should have happened?
The symbols dialog should resolve references (at least in the same SVG file) and copy them in the defs as well.
Bonus bug: The Preview doesn't render the clone either.
Use case:
Since we're using Inkscape to draw SCADA/HMI diagrams, we depend on nested symbols a lot. We effectively copy our own libraries directly into share/symbols/ since AFAIK there is no other way to reuse custom symbols.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362