Comment 44 for bug 722017

Revision history for this message
su_v (suv-lp) wrote :

> But just to clarify how you think it should work :
>
> *If the user creates a gradient, then copy/pastes, the id and hence
> the name will be different.
> *If the user creates a gradient, then sets a label/name for the
> gradient (by editing the name in the Fill/Stroke dialog) , then
> copy/pastes, the label and hence the name should stay the same ? Or
> do you think the label and the name should be automatically changed
> as well ?

TBH - I don't know: up to now, gradient names as displayed in the GUI (i.e. IDs) have been unique resource identifiers in Inkscape. While I do understand that 'inkscape:label' attributes do not have this restriction, I'm not yet convinced that we should allow users to label different gradient definitions with the same name.

If the labels are not unique, they may disguise the fact that multiple definitions of the same gradient (colors, offsets) exist, while showing the same name in Inkscape's GUI (yes, I know, the usage # is an indicator). Since (unfortunately IMHO) forking of gradients cannot be turned off when copy&pasting within the same document, a steadily increasing amount of duplicate gradient definitions is a persistant issue for many Inkscape users.

Another issue that might come up with such additional, non-unique labels (as did with layer names, e.g. bug #243383), is that AFAIU those attributes in inkscape's namespace are removed when saving a copy as 'Plain/Optimized SVG', and cannot be used e.g. in scripts or animations.