[Libreoffice-bugs] [Bug 138501] New: Distance-Based Dash Patterns Drawn Incorrectly

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 26 03:35:19 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138501

            Bug ID: 138501
           Summary: Distance-Based Dash Patterns Drawn Incorrectly
           Product: LibreOffice
           Version: 7.0.0.3 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: alfredh at microsoft.com

Description:
We noticed a discrepancy between how LibreOffice saves and displays the same
information.

Background:

A stroke pattern is defined with these parameters: 
•       primary dash length (percentage or distance)
•       primary dash count
•       secondary dash length (percentage or distance)
•       secondary dash count
•       distance between all dashes
So for example, the following dash pattern: one long dash, two short dashes,
repeating

is defined by:
•       primary dash length = 1100% of width
•       primary dash count = 1
•       secondary dash length = 100% of width
•       secondary dash count = 2
•       distance between all dashes = 500% of width 
Most dash patterns are defined as percentages, and so the dashes change lengths
proportionally as the width changes, but some use absolute distance values.
These, specifically, appear to have an issue.


Steps to Reproduce:
•       Open LibreOffice Writer and create a vertical line with width 6pt and
dash pattern "Line with Fine Dots".
•       Save and close the document. Change the file extension to .zip, extract
all the contents, and open styles.xml.


Actual Results:
•Observe that the dash pattern is defined with this XML line:
<draw:stroke-dash draw:name="Line_20_with_20_Fine_20_Dots"
draw:display-name="Line with Fine Dots" draw:style="rect" draw:dots1="1"
draw:dots1-length="0.7902in" draw:dots2="10" draw:distance="0.0598in"/>
•The primary dash, then, should be .79 inches long, but if you draw a square
next to the primary dash, you can see that it's actually drawn 1.39 inches
long. [See Fig. 1 at bottom.]
•If you open the ODT in Office Word and perform the same comparison, you can
see that Word actually does draw the primary dash .79 inches long. [See Fig. 2
at bottom.]

Expected Results:
It seems that Office Word honors the measurements given, but LibreOffice
renders them at about double the given distance. I believe this is a
LibreOffice bug.


Reproducible: Always


User Profile Reset: No



Additional Info:
see attached files

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201126/e3f166b3/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list