Object -> Symbol loses custom attributes

Bug #1337009 reported by Neal Holtz
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

When a group with custom attributes, for example

   <g id=".." ice:class="damper-2.5d" ...>...</g>

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><g>...</g></symbol> in the <defs>
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.

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

Reproduced with Inkscape 0.48+devel r13502 on OS X 10.7.5.

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.91
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP, Inkscape trunk revision 13502.

Changed in inkscape:
status: Confirmed → Triaged
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.