Duplicating (Ctrl+D) lines with markers while the Fill and Stroke panel is open duplicates the marker definition as well (and bloats the "Markers" drop-down box)
Steps to reproduce:
- open Inkscape
- use the Bezier tool (B) to create a line
- open Fill and Stroke (Shift+Ctrl+F) -> Stroke style (Alt+Y) -> Markers
- under "Markers", assign any marker or arrow head to the line
- duplicate the line (Ctrl+D)
What happened?
Inkscape duplicates the line and also duplicates the marker definition:
Edit: Astonishingly enough this only happens when the Fill and Stroke panel is open (regardless of which of its pages is active). If the Fill and Stroke panel is closed when the duplicate is made, the duplicate line (correctly) references the original's marker defs.
In and of itself this doesn't matter too much (aside from bloating the document with redundancy).
But it has an awkward side effect – it also bloats the line marker drop-down box with loads of redundant markers (to the point of making it nearly unusable in large documents):
(In the large drawing I'm currently working on, I have several screenfuls of identical markers a the top of the marker drop-down by now.)
What should have happened?
Inkscape should have used the original's marker definition (in the sample above, #Arrow1Send
).
As a mitigation, File -> Clean Up Document should detect redundant marker definitions and unify them into one.
Inkscape Version and Operating System:
- Inkscape Version: 1.0rc1 (09960d6f05, 2020-04-09)
- Operating System: Windows 10 Enterprise
- Operating System version: 10.0.19041
Sample drawing: drawing.svg