
Hey devs,
I've been tracking this bug: https://bugs.launchpad.net/inkscape/+bug/1107924
Dragging symbols to the document 'pastes' them in. The 'use' element created points to the symbol definition. But it also adds width="1" height="1" to the element which is erronious. sp-use.cpp sets width and height to 100% (1.0 + SVGLength::PERCENT) and I thought that might be the culprit, but it's not effecting these use elements.
So I traced the copy process, outputting the xml at each step through the copy process. The use element created and passed around never has a width and height attribute and setting one gets overridden.
So I'm at a loss, the element from the paste process acquires attributes by some magic I can't yet trace. Any help understanding what's going on would be great.
Best Regards, Martin Owens