Pasting styles from blurred objects sets all new objects to be blurred by default
Migrated from: https://bugs.launchpad.net/inkscape/+bug/1814368
Steps to reproduce:
- Create any shape
- Set it's blur value to something non-zero
- Copy the object (ctrl+c)
- Create another different shape
- Paste style on the new shape (shift+ctrl+v)
- Draw additional shapes
- All subsequent shapes will be blurred by default, even if you set blur to zero, and re-copy/re-paste-style.
What happened?
This bug arises if any object has previously been blurred using the "Paste Style" command. The issue is that setting blur to 0.0% removes the blur filter, but new objects are still blurred. In XML editor, the filter tag is indeed removed when the blur is set to 0.0%, however new objects are still blurred anyway, with new objects pointing to the old filter URL in XML editor. I believe this is actually a bug in the tool preference "Style of new objects -> Last used style" or in the "Paste Style" command rather than in the actual SVG code.
This bug also arises from copying styles from filtered objects (not just blurred ones) and pasting them using Ctrl + Shift + V (or Edit -> Paste Style). All new objects will now have that filter applied by default. This issue is particularly prevalent when using blurred objects, because setting the blur to 0.0% has no effect on new objects.
The bug can be fixed by selecting a new object and using the "Remove Filters" command, or deleting every object with the old filter URL, or restarting Inkscape.
A secondary bug is that, when the primary bug above is in effect, pasting the style of an unblurred object onto a blurred object will NOT remove the blur. This is not normal behaviour.
What should have happened?
Setting blur to 0.0% should cause all subsequent drawn objects to be unblurred.
Inkscape Version and Operating System:
Original report:
- Inkscape Version: 0.92.4
- Operating System: Unknown
- Operating System version: Unknown
Confirmed on:
- Inkscape Version: 1.0alpha (3a1866ab, 2019-03-25)
- Operating System: Ubuntu
- Operating System version: 18.04