Bug 33900

Summary: SVG import/render does not handle use tag
Product: LibreOffice Reporter: Gerard Braad <gbraad>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: taken.spc, v_2e, xiscofauli
Priority: medium    
Version: 3.3.0 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=96181
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Original file containing use tag with xlink:href to path inside the vector drawing
Export from Inkscape which shows the expected outcome of the original file
Export from LibreOffice Draw which shows the actual outcome of the original file
Latex equation (original svg file)
The Latex equation rendered in LibreOffice Draw 3.3

Description Gerard Braad 2011-02-04 05:01:33 UTC
STEPS TO REPRODUCE:
1. Start any LibreOffice application
2. From the menu choose 'Insert' -> 'Picture' -> 'From file'
3. Import svg image containing use tag

EXPECT OUTCOME:
Image is rendered correctly. See attachments.

ACTUAL OUTCOME:
Image is not correctly rendered. See attachments.
Comment 1 Gerard Braad 2011-02-04 05:03:45 UTC
Created attachment 42927 [details]
Original file containing use tag with xlink:href to path inside the vector drawing
Comment 2 Gerard Braad 2011-02-04 05:04:46 UTC
Created attachment 42928 [details]
Export from Inkscape which shows the expected outcome of the original file
Comment 3 Gerard Braad 2011-02-04 05:06:11 UTC
Created attachment 42929 [details]
Export from LibreOffice Draw which shows the actual outcome of the original file

Note: image has been cropped with Gimp.
Comment 4 Gerard Braad 2011-02-04 05:11:45 UTC
Attachment 42927 [details] is the original file as referred to in the bug.
Attachment 42928 [details] shows the expected outcome
Attachment 42929 [details] shows the actual outcome

As can be seen, one of the C's in the CC logo is missing as it is specified using a use tag.

<svg>
  <path id="lc" d="M ... blah blah ... z" />
  <use id="rc" xlink:href="#lc" transform="translate(5.0)" />
</svg>
Comment 5 Roland Baudin 2011-02-15 12:33:28 UTC
Created attachment 43397 [details]
Latex equation (original svg file)
Comment 6 Roland Baudin 2011-02-15 12:33:49 UTC
Created attachment 43398 [details]
The Latex equation rendered in LibreOffice Draw 3.3
Comment 7 Roland Baudin 2011-02-15 12:37:22 UTC
I have attached two files to illustrate tghe problem with SVG files that contain use element tags.
As can be seen in the odg file, the imported equation is totally garbage...

Is somebody working on this issue? Can we expect it to be solved in the near future?

Another question : would it be difficult for a medium knowledge programmer to implement the use element feature in LibreOffice?

Thanks,
RB
Comment 8 Björn Michaelsen 2011-12-23 11:50:10 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 9 Dominik Kopp 2012-08-13 21:29:16 UTC
in 3.5.4 the cc logo as well as the latex equation are looking OK.