Issue 118779 - Rendering is broken after update of linked svg graphic
Summary: Rendering is broken after update of linked svg graphic
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: open-import (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: PC Windows XP
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: Armin Le Grand
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 19:55 UTC by Regina Henschel
Modified: 2012-09-06 03:33 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2012-01-12 19:55:50 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.
Comment 1 Armin Le Grand 2012-01-13 14:45:07 UTC
ALG: Taking over
Comment 2 Armin Le Grand 2012-01-13 17:51:13 UTC
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!
Comment 3 Armin Le Grand 2012-01-16 10:43:14 UTC
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.
Comment 4 louqle 2012-09-06 03:33:59 UTC
verified on XP against 1376366, close