Apache OpenOffice (AOO) Bugzilla – Issue 118779
Rendering is broken after update of linked svg graphic
Last modified: 2012-09-06 03:33:59 UTC
Take a Draw document. Insert a svg graphic in linked kind. Notice in the statusbar the text "SVG selected". Goto Edit > Links... and click on 'Update' and then on 'Close'. Notice, that the svg graphic is replaced with a poor bitmap. Notice the text "Linked bitmap with transparency selected" in the statusbar. The link to the svg graphic still exists and will be used on reload, but you cannot get back the rendering as svg-graphic. You need to save and reload the document to repair the rendering.
ALG: Taking over
ALG: Good catch, I would have never tried this. Internally that refresh goes through a loop of the ImpGraphic stream operators. For Svg, the replacement graphic gets streamed to stay compatible with old stuff. At streamin, only the BitmapEx remains. I'll have to check if I can modify these operators or if they are somewhere used in file formats. Argh!
ALG: Added streaming Svg content to ImpGraphic stream operators. This should be uncritical since these operators are used for things like swapping graphics and transporting them over the UNO API, but no more for writing them to any kind of file. ALG: Comitted, done.
verified on XP against 1376366, close