Object -> Symbol loses custom attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
When a group with custom attributes, for example
<g id=".." ice:class=
is converted to a symbol, the custom attributes (in this case 'ice:class') are often
lost. It *appears* as though, if the transform on the <g> is "simple" (ie., just
a translation), a <use> is created with the same transform and the children
of the <g> are re-rooted in a new <symbol>
section. And the custom attributes are lost.
If the transform is more complex, the original 'g' with all custom attributes
and children is moved to the new <symbol> node and is replaced with
a <use> with no transform. In this case, the custom attributes are
retained as part of the symbol.
I think I would prefer the latter for all cases, but I really want all my
custom attributes kept, somewhere. Actually, now that I think
I bit harder, they do have to be retained on the symbol.
Note, in the above, 'ice' is a proper namespace, properly set in the svg file.
Reproduced with Inkscape 0.48+devel r13502 on OS X 10.7.5.