Created attachment 140431 [details] svg-file with a column chart I have a lot of old Impress files with links to svg files (vector) which work without any problem until LO 5.4.5. Since LibreOffice 6.0 the links are broken on fileopen and bitmaps are to be seen. The attached svg-file can be linked to an Impress-file. If stored and re-opened the link is broken and the chart has been converted to a bitmap.
The same problem occurs if you insert a svg file in a text document (version 6.0.2, Win 10): [1] Create new text document. [2] Insert a svg file as a link: Insert > Image > check 'Link' > select svg file > Open, a message is displayed, click 'Keep link'. [3] Select inserted image, the link can be modified now: Edit > Links to internal files...: Dialogue 'Edit links' is displayed. [4] Close dialogue without changes. [5] Save and close document. [6] Open document again. [7] Select inserted image, the link can not be modified now, because menu item 'Links to external files...' is greyed. Expected: Link of image should be editable. It seemed that the bug happens at the opening of the file, because if I open the document (created with version 6.0.2) with version 5.4.4, the problem does not occur.
The behaviour changed after author Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2018-01-12 17:32:41 +0100 committer Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2018-01-15 13:50:10 +0100 commit 3da86d8987db6223b0acc5d8a1b56f7e0c54bbef (patch) tree 0afdf8c0a0497ebfd8ef1303bfc51c5a3177a4a5 parent 0623f3a8f5d6fbc5e9b933cb034184084e8ac666 (diff) tdf#114488 Rank multiple images also for flat odf Only the file extension was considered before which is not available in flat odf. Now both internal and external URLs are resolved to their respective mimetype. Bisected with: bibisect-linux64-6.1 Adding Cc: to Samuel Mehrbrodt @Samuel: Could you please comment on whether it's the expected behaviour or a bug?
(In reply to Xisco Faulí from comment #2) > @Samuel: Could you please comment on whether it's the expected behaviour or > a bug? This looks like a bug.
Serge Krot committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bc906ec69d47ecde13ddf63cf3d366ec89055cfe&h=libreoffice-6-0 tdf#116266: Take into account file extension when image type is unknown It will be available in 6.0.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The issue with lost SVG files was fixed tdf#115005. The issue with disabled "Links" dialog was fixed for branch-6.0. For the master a completely different fix should be applied.
Serge Krot committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=805da078eca4db1f54d39186f43d5dbd56b7a84b tdf#116266 Add unit test It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Should be fixed now in both master and 6.0. Please verify the fix!
Verified in Version: 6.1.0.0.alpha1+ Build ID: 653e58f9eb3d4ee61d8103993cdff2660c9127a5 CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group Serge Krot, thanks for fixing this!
Verified with 6.0.4 (64 Bit, Win 10). Thanks for fixing.