Bug 139579 - Impress does not import SVG graphic with xml and DOCTYPE tag
Summary: Impress does not import SVG graphic with xml and DOCTYPE tag
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import Drag-and-Drop
  Show dependency treegraph
 
Reported: 2021-01-13 08:48 UTC by liboffbugz
Modified: 2021-03-21 20:20 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liboffbugz 2021-01-13 08:48:45 UTC
Description:
When an SVG file starts with an xml tag and a DOCTYPE tag then IMPRESS can't import it by drag'n'drop. Without the tags the import works fine.

Example:
<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">


Steps to Reproduce:
1. Take an SVG file that starts with an xml and a DOCTYPE tag, e.g. from https://www.flaticon.com/free-icon/copyright_100515
2. Drag'n'drop it into IMPRESS
3. Observation: the graphic is not visible in IMPRESS, but the undo-button offers you to undo the import.

Actual Results:
The graphic is not visible in IMPRESS, but the undo-button offers you to undo the import.

Expected Results:
The graphic should be visible.


Reproducible: Always


User Profile Reset: No



Additional Info:
When I remove the xml tag and the DOCTYPE tag from the SVG file, the drag'n'drop-import into IMPRESS works fine.
Comment 1 Roman Kuznetsov 2021-03-12 19:53:24 UTC
I checked to insert SVG by link with d&d and using Insert image menu. It works fine

no repro in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 9d8accf03984a64a4105826e55b221962628eb93
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

nor in

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win
Locale: ru-RU (ru_RU); ИП: ru-RU
Calc: CL

Linux only?


Write info from LO's Help>About dialog here like me, please. Thank you
Comment 2 liboffbugz 2021-03-21 20:19:07 UTC
(Un)Fortunately I can't reproduce it any more and will mark the ticket as "resolved"/"fixed".
For the sake of completeness - this is the info from the about dialog:

Version: 7.0.3.1
Build ID: 00(Build:1)
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: x11
Locale: de-DE (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.3-0ubuntu0.20.10.1
Calc: threaded

Thank you for having a look at the issue, Roman.