Bug 157894 - Undesirable rendering of dashed line in shapes with corners
Summary: Undesirable rendering of dashed line in shapes with corners
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2023-10-23 10:20 UTC by Eyal Rozenberg
Modified: 2023-10-23 18:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Document exhibiting the bug (12.21 KB, application/vnd.oasis.opendocument.presentation)
2023-10-23 10:20 UTC, Eyal Rozenberg
Details
Screenshot of LO Impress window with attachment 190382 (110.93 KB, image/png)
2023-10-23 10:22 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-10-23 10:20:56 UTC
Created attachment 190382 [details]
Document exhibiting the bug

Consider the attached presentation. It was produced as follows:

1. New presentation
2. Delete default elements
3. Insert a rectangle
4. Set fill to None
5. Set Line Width to 6 pt
6. Set Line style/type to Dashed
7. Play with rectangle dimensions a bit

You'll notice that the corners have jagged artifacts. While one can understand why these were produced (rendering each edge irrespective of the intersecting edge) - it is unaesthetic, jarring, and is not how a person would trace a dashed path.

I suggest that when we have "small parts of dashing", which do not exceed the intersection with the other edge; and another edge with a dash intersecting the edge of the intersection - the "small part of a dash" not be rendered at all.

Alternatively, the placement of spaces between dashes can be follow the circumference, so that dashes of consecutive edges can (more-or-less) never intersect.

See with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3161a6c351a2f5f70c0420ee8cccf2eb23de1ecf
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Comment 1 Eyal Rozenberg 2023-10-23 10:22:03 UTC
Created attachment 190383 [details]
Screenshot of LO Impress window with attachment 190382 [details]
Comment 2 BogdanB 2023-10-23 10:31:27 UTC
Confirm with
Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: ro-RO (en_US); UI: en-US
Calc: threaded