Created attachment 162081 [details] Sample slide (PPTX) Observe how the vertical line in the center/at the top appears dotted in Office 365 and solid in Impress (6.4.4.2 and 7.1.0.0.alpha0+).
Created attachment 162082 [details] How it looks in LibreOffice (solid line)
Created attachment 162083 [details] This is how it looks in Office 365
Created attachment 162119 [details] How it looks in LibreOffice 7.1 at 440%
Reproduced in Version: 7.1.0.0.alpha0+ Build ID: 27381dc1b76e4aee5459b3d85e6fc5919d2b8f98 CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 162120 [details] How it looks in LibreOffice 5.2 at 440%
In previous versions it looks different but don't think it's pefect either
The reason of the problem is the cap style "round". The dash style in PowerPoint is a prstDash "sysDot". This is defined to have one dash in 100% line width and one space in 100% line width. If the cap style is set to "round", then Ms Office takes the rounding from the dash. So in this case the square becomes a circle. But in ODF the line cap is added to the dash and the place for that cap is taken from the space. So gives rounded dashes that touch each other in this case. You can get nice rounded dots in LibreOffice with setting the dash length to 1% and the space length to 200%. Such dash style would be exported as custDash. But PowerPoint has no UI for such user defined dash styles. If the dash style is unchanged it will be exported as prstDash again and you get the same dash as before in PowerPoint. Workaround: Always use cap style "flat" in PowerPoint and LibreOffice. The export as custDash seems to have the error, that is does not write the % sign, which is needed in custDash. Would it be acceptable to use a custDash, although PowerPoint has no UI for it?
I will look, whether I can tweak dash lengths on import and export.
Proposed patch is in https://gerrit.libreoffice.org/c/core/+/96769. But I have currently no idea for a unit test. I would need to load a MS Office document with preset and custom dash style and examine how long the dashes are. First thoughts are to convert to metafile and break that up, or convert to Bézier curve and split that. But I don't know how to do that in a unit test.
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3f3b50015e4fd9efc3459612a70409fca49cf390 tdf#134053 tweak dash and space length for ooxml It will be available in 7.1.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Regina Henschel committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/1cbdc101c72309a97e9ee09c77f4fd36fbd71314 tdf#134053 tweak dash and space length for ooxml It will be available in 7.0.0.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Regina Henschel from comment #7) > Workaround: Always use cap style "flat" in PowerPoint and LibreOffice. > > The export as custDash seems to have the error, that is does not write the % > sign, which is needed in custDash. > > Would it be acceptable to use a custDash, although PowerPoint has no UI for > it? Thank you, Regina! That is a significant improvement, and this being part of a standard template (in my case) importing/exporting it properly is what matters most, not the ability to then change the style in PowerPoint.
Luboš Luňák committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/32f2d2f7f99f73203294a91a9b432fd0c3fc7f99 a unittest for my cairocanvas fix for tdf#134053 It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.