Copy/Paste to the same document should behave as Duplicate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Wishlist
|
Unassigned |
Bug Description
[update] this bug is now better explained by comment #4 <https:/
I noticed that everytime I copy/paste an object into the same document, its gradient(s) and filter(s), if any, are duplicated.
I assume this is a deliberate choice, in order to allow each copy to have their gradient(
- Gradients and filters are shown as autonomous objects in their respectife Edtor dialogs.
- Deleting an object does *not* delete its gradient(s) or filter(s) -- so they really are autonomous.
So a document ends up cluttered with a lot of unused gradient(s) and/or filter(s).
I suggest to add an option "do not copy gradients and filters" in the preferences, which would be disabled by defaut (in order to keep the current behaviour for those who like it). But when this option is turned on, copying an object in the same document would create an object linking to the same gradient(s) and filter(s).
It would still be quite easy to make them independant by dupicating a gradient or a filter manually before editing it.
tags: | added: gradient ui |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
summary: |
- [wishlist] Copy/paste duplicates graidents and filters + Copy/Paste to the same document should behave as Duplicate |
description: | updated |
What I see in Inkscape 0.47:
1) objects duplicated with menu command 'Edit > Duplicate' re-use the gradient definitions of the original (i.e. they share it), unlike copy&paste'd objects.
2) the 'Gradient Tool' allows to assign existing gradient definitions to new objects (i.e. to share it). You can re-use existing gradient definitions from the same list in the fill&stroke dialog as well, once you change the fill from e.g. flat color to gradient.
3) editing a gradient (number and location of stops, color and alpha values) on-canvas results in un-sharing of the gradient definition: the edits only apply to the current object, whereas editing a gradient in the 'Gradient Editor' dialog edits the definition shared by possibly multiple objects and does not assign the edited gradient to an individual object.
4) 'File > Vacuum defs' exists and allows to remove unreferenced (gradient) elements in the <defs> section.
5) 'Inkscape Preferences > Misc > [ ] prevent sharing of gradient definitions' already exists (though reportedly not working as expected - see bug #437926). This preference is *not* enabled by default.