Bug 168301 - Dashed/dotted lines created in LibreOffice draw with line thickness more than 0.5, when exported to .svg or .svgz, dashed lines get converted into solid lines in the exported vector image.
Summary: Dashed/dotted lines created in LibreOffice draw with line thickness more than...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:svg, possibleRegression
: 168407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-09-06 18:52 UTC by Arnab C
Modified: 2025-09-19 06:50 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 Arnab C 2025-09-06 18:52:47 UTC
Description:
Overview: 

Considering a dashed/dotted line/shape is created in LibreOffice Draw, when the drawing is exported as a .svg or .svgz file, the final exported vector file looses the dashed/dotted style line/shape and that is converted into solid line/shape. So as a result, all the lines in the final exported file are solid lines.


Steps to Reproduce:
Steps to Reproduce:

- Open LibreOffice draw. Insert a line/rectange.
- For line : Select these
[Properties: Line = Dash or dotted, Thickness > 0.5]
For rectangle : Select these
[Properties: Area : Fill = None, Line = Dash or dotted, Thickness > 0.5]
- Export the image as .svg or .svgz.

Actual Results:
Actual Results:

- Open the .svg or .svgz in any browser or in inkscape. You will see all the dashed/dotted lines with thickness more than 0.5 are converted into solid lines.
- You can try combining different line styles (dashed, long dashed, dotted, long dotted etc.) with different Line width (0.8, 1, 1.5, 2.3 and so on). Mostly you will find the lines are converted into solid lines. Sometimes even Line Width 0.5 also results in conversion into solid lines depending on other factors.
- The main point is that, this problem is happening for different combinations.

Expected Results:
Expected Results:

When different combinations are selected for the lines/shapes in the drawing, the same should be retained in the exported vector files (.svg & .svgz). If dotted line is selected with Line Width 1.5, the same should be retained in the exported vector image. Instead the vector image is having solid line with Line Width 1.5.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
None.
Comment 1 Saburo 2025-09-19 06:00:42 UTC
*** Bug 168407 has been marked as a duplicate of this bug. ***
Comment 2 Saburo 2025-09-19 06:50:49 UTC
reproducible in
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 57b3eb385b4ae100c5121d47845b46084fd9ed19
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

and in
Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

not reproduce
Version: 7.0.6.2
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

bibisected with linux-64-7.1
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)

***
adding CC: Luboš Luňák
plese, take a look?