Bug 53276 - draw:style="round" under draw:stroke-dash is ignored.
Summary: draw:style="round" under draw:stroke-dash is ignored.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 48066
Blocks: ODF-import
  Show dependency treegraph
 
Reported: 2012-08-09 02:33 UTC by Brennan Vincent
Modified: 2022-09-14 10:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File with "round" (obsolete by next attachment) (8.58 KB, application/vnd.oasis.opendocument.graphics)
2012-08-09 02:33 UTC, Brennan Vincent
Details
Correct file with "round" (8.58 KB, application/vnd.oasis.opendocument.graphics)
2012-08-09 02:34 UTC, Brennan Vincent
Details
File with "rect" (9.18 KB, application/vnd.oasis.opendocument.graphics)
2012-08-09 02:36 UTC, Brennan Vincent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brennan Vincent 2012-08-09 02:33:24 UTC
Created attachment 65322 [details]
File with "round" (obsolete by next attachment)

According to the following: http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#attribute-draw_style_element-draw_stroke-dash

draw:style="round" should cause the dashes to be rounded. However, the two attached files differ only in this propertly, and appear to be pixel-for-pixel identical.
Comment 1 Brennan Vincent 2012-08-09 02:34:17 UTC
Created attachment 65323 [details]
Correct file with "round"
Comment 2 Brennan Vincent 2012-08-09 02:36:03 UTC
Created attachment 65324 [details]
File with "rect"
Comment 3 Owen Genat (retired) 2013-12-10 05:20:16 UTC
Confirmed. Status set to NEW.  Version set to Inherited From OOo. Platform set to All. Not sure if Component should be set to Draw? 

The central issue here is conformance with ODF v1.2, Part 1, 19.218.5 i.e., if I am understanding correctly, the XML in round.odg has been edited for testing to alter the default draw:style="rect" to draw:style="round". There does not appear to be any facility when editing a line, either directly or via a style, to change this particular attribute in the given context (against the draw:stroke-dash element). Unfortunately, the dashes themselves appear to be set to a rounded appearance by setting the cap style to "Round". In this case content.xml (direct formatting) or styles.xml (style) contains:

> <style:graphic-properties draw:stroke="dash" draw:stroke-dash="Fine_20_Dotted" ... svg:stroke-linecap="round" ... >

... which would appear to be a mis-interpretation of ODF v1.2, Part 1, 20.164: 

> The svg:stroke-linecap attribute specifies the shape of the end of open subpaths when they are stroked.

LO appears to be treating each dash as a "subpath", which would seem erroneous. Bug 48066 is related to this stroke-linecap matter so I have added it to the Depends on list. I have tested creating rectangles using the type of line indicated (Fine Dotted with Corner style "-none-" and Cap style "Flat") under Ubuntu 10.04 x86_64 using: 

- v3.3.0.4 OOO330m19 Build: 6
- v3.4.6.2 OOO340m1 Build: 602
- v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
- v3.6.7.2 Build ID: e183d5b
- v4.0.6.2 Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24
- v4.1.3.2 Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a

In all cases styles.xml contains:

> <draw:stroke-dash draw:name="Fine_20_Dotted" draw:display-name="Fine Dotted" draw:style="rect" draw:dots1="1" draw:distance="0.457cm"/>

... rather than the "round" indicated. Changing this attribute value to "round" manually has no effect on what is rendered in any of the listed versions.
Comment 4 QA Administrators 2015-04-19 03:20:21 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-06-15 11:17:57 UTC
Confirmed.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 01a189abcd9a4ca472a74b3b2c000c9338fc2c91
TinderBox: Win-x86@39, Branch:master, Time: 2015-06-14_07:46:28
Locale: fi-FI (fi_FI)
Comment 6 QA Administrators 2017-03-06 15:01:43 UTC Comment hidden (obsolete)
Comment 7 Regina Henschel 2019-02-11 20:18:47 UTC
Still not implemented in Version: 6.3.0.0.alpha0+ (x64)
Build ID: 7c304fa6a99d1c30cf1bc6774612d96b382041d8
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 8 Regina Henschel 2020-09-13 15:53:01 UTC
In the meantime there is in ODF 1.3 the rule, that linecap has precedence over draw:style and is applied to each dash. That is similar to dashes in CSS and MS Office.

A solution can be, to set linecap="round" at the object when the dash definition is first applied to the object.

There is no UI for the draw:style attribute.
Comment 9 QA Administrators 2022-09-14 03:38:35 UTC Comment hidden (obsolete)
Comment 10 Regina Henschel 2022-09-14 10:31:59 UTC
Still not implemented in Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4e2ce2a460458f17ee4360c45a2da2fc4b4d753e
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL