Apache OpenOffice (AOO) Bugzilla – Issue 118729
linked svg graphic looses link
Last modified: 2017-05-20 10:31:59 UTC
It might be the same reason as issue 118728, but the bug is a little bit different. Take a new Draw document. Insert the svg-graphic, which is attached to issue 118728 as linked graphic. Save the document and close it. Reopen the document. Notice, that not the svg-graphic is shown, but a bitmap-picture. Goto Edit > Links. Notice, that there is no link listed.
ALG: Reason identified: With the new MultiImage support a link svg and a non-link png gets saved. At load time the decider uses the URLs to weight the quality of multiple images. The error is that for linked images the URL is not fetched using 'GraphicStreamURL' property, but 'GraphicURL'. Thus, for linked images the URL for quality weighting was empty, thus the png won. Very good catch, corrected this to use 'GraphicURL' for links and all is working well. Also checked Writer which uses the same mechanism, but there the URL access is simpler and already was correct.
ALG: Added using 'GraphicStreamURL' and 'GraphicURL' if needed. Checked Wirter usage, also correct. Comitted, done.