Bug 165901 - Dashed lines after SVG export looks solid in the target SVG
Summary: Dashed lines after SVG export looks solid in the target SVG
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2025-03-25 12:02 UTC by Maks Lysohorov
Modified: 2025-07-13 18:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Pptx presentation with issue (36.79 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2025-03-25 12:02 UTC, Maks Lysohorov
Details
exported SVG (486.43 KB, image/svg+xml)
2025-03-25 12:03 UTC, Maks Lysohorov
Details
Screenshot of the issue (72.91 KB, image/png)
2025-04-21 09:42 UTC, Maks Lysohorov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maks Lysohorov 2025-03-25 12:02:28 UTC
Created attachment 200012 [details]
Pptx presentation with issue

Dashed lines are solid after export to SVG

Expected result: dashed lines are dashed in the target SVG after export
Comment 1 Maks Lysohorov 2025-03-25 12:03:55 UTC
Created attachment 200013 [details]
exported SVG
Comment 2 Xisco Faulí 2025-03-25 14:38:15 UTC
Reproduced in

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fabdac1af8d30f849a94defd516d6699945f908d
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

but not in

Version: 6.4.0.0.alpha1+
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3; 
Locale: en-US (es_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 3 Xisco Faulí 2025-03-25 14:39:30 UTC
Also reproduced in

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 898d5d470e24a55556f2fb244fec24df33ba8855
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 4 Saburo 2025-03-26 08:13:53 UTC
first bad
Version: 7.1.4.0.0+ / LibreOffice Community

commit 57595773df9f89245457443a3def786fa0e70a69
author	Luboš Luňák <l.lunak@collabora.com>	Tue Apr 27 11:44:48 2021 +0200
do not apply line dashing in drawinglayer (tdf#136957)

basegfx::utils::applyLineDashing() is not as good as the actual
VCL backend dashing, and there are some rounding errors because of
all the canvas transformation matrices or whatever, which leads
to the drawing problem. So use LineInfo to carry the dashing
information.
As a part of this change, also make LineInfo use doubles instead
of ints. The use of transformation matrices means that the values
may be fractional and less than one.
Comment 5 Maks Lysohorov 2025-04-21 09:42:46 UTC
Created attachment 200432 [details]
Screenshot of the issue

Thanks for the clarification!
I have attached a screenshot with how it looks in LibreOffice v.25.2.2 and how it looks in the exported SVG