Bug 129324 - EDITING Draw converts text to curves in a SVG file with viewBox in SVG code
Summary: EDITING Draw converts text to curves in a SVG file with viewBox in SVG code
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2019-12-11 10:54 UTC by joachim_liedtke
Modified: 2024-04-30 09:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG not working (292 bytes, image/svg+xml)
2019-12-11 10:54 UTC, joachim_liedtke
Details
SVG working (270 bytes, image/svg+xml)
2019-12-11 10:55 UTC, joachim_liedtke
Details
SVG made from LODraw for comparison of code and size (7.71 KB, image/svg+xml)
2019-12-18 07:38 UTC, joachim_liedtke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joachim_liedtke 2019-12-11 10:54:30 UTC
Created attachment 156477 [details]
SVG not working

I have a (very basic) SVG with two lines of text. When I place the file in Draw, then break it up the first line of text is always converted to curves whereas the second line of text is editable.

When I remove viewBox from the SVG code (width and height are 100%) both lines of text are editable.
Comment 1 joachim_liedtke 2019-12-11 10:55:03 UTC
Created attachment 156478 [details]
SVG working
Comment 2 Roman Kuznetsov 2019-12-18 07:28:11 UTC
Joachim, in which software did you make your SVG?


Xisco, possibly it's not our bug?
Comment 3 joachim_liedtke 2019-12-18 07:37:54 UTC
Basically the SVG was coming from Affinity Designer / Adobe Illustrator CS6. Tried both versions. Step by step I removed several lines of code from the SVG until the versions I uploaded.

So the only version worked was the one where I removed viewBox. Apart from this: Have you ever checked the code of SVG generated from LODraw? Its massive for just two lines of text. Good news, this SVG works after reimport to LODraw.
Comment 4 joachim_liedtke 2019-12-18 07:38:37 UTC
Created attachment 156642 [details]
SVG made from LODraw for comparison of code and size
Comment 5 Buovjaga 2020-04-29 17:08:31 UTC
Behaves like this already in 4.4. Older versions do not allow to break it.

I don't see why it should behave this way with viewBox attribute being present.
Comment 6 QA Administrators 2022-04-30 03:39:26 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2024-04-30 03:14:17 UTC Comment hidden (obsolete)
Comment 8 joachim_liedtke 2024-04-30 07:08:12 UTC
The bug is fixed. Many thanks for that.
Comment 9 Buovjaga 2024-04-30 07:34:12 UTC
(In reply to joachim_liedtke from comment #8)
> The bug is fixed. Many thanks for that.

Nope, not fixed. The problem remains and a regression has appeared with Break command: the size of the items becomes tiny. If I enlarge the top item, I can see that it has again been converted to curves. I should report this new thing separately later.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 63e0680e29ea8d414ca23d10304d5564fe2aa99c
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 10 Buovjaga 2024-04-30 09:12:08 UTC
(In reply to Buovjaga from comment #9)
> (In reply to joachim_liedtke from comment #8)
> > The bug is fixed. Many thanks for that.
> 
> Nope, not fixed. The problem remains and a regression has appeared with
> Break command: the size of the items becomes tiny. If I enlarge the top
> item, I can see that it has again been converted to curves. I should report
> this new thing separately later.

Bibisected and found that it was recently reported as bug 160625.