[Libreoffice-bugs] [Bug 107878] New: element sizes are displayed wrong

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon May 15 19:56:12 UTC 2017


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

            Bug ID: 107878
           Summary: element sizes are displayed wrong
           Product: LibreOffice
           Version: 5.3.1.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: roland.illig at gmx.de

Description:
When I define a rectangle to be 2cm times 2cm, I expect it to have exactly this
size, at least to a precision of 10 decimal digits. Nevertheless, Draw gets the
third digit of the size wrong, showing 2.01 cm instead.

Steps to Reproduce:
1. Create a new document.
2. Draw a rectangle, set its width and height to "2 cm".
3. Click outside the rectangle
4. Click on the rectangle

Actual Results:  
The width and height is displayed as "2.01 cm".

Expected Results:
The width and height is displayed as "2.00 cm".


Reproducible: Always

User Profile Reset: No

Additional Info:
When saving the rectangle to a file, the correct size is saved:

<office:drawing>
  <draw:page
      draw:name="page1"
      draw:master-page-name="Standard"
      draw:style-name="dp1">

    <draw:custom-shape
        draw:style-name="gr1"
        svg:y="3cm" svg:x="3cm"
        svg:height="2cm" svg:width="2cm"
        draw:layer="layout" draw:text-style-name="P1">

      <text:p/>

      <draw:enhanced-geometry
          draw:enhanced-path="M 0 0 L 21600 0 21600 21600 0 21600 0 0 Z N"
          draw:type="rectangle"
          svg:viewBox="0 0 21600 21600"/>

    </draw:custom-shape>
  </draw:page>
</office:drawing>



User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

-- 
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/20170515/feec87c1/attachment-0001.html>


More information about the Libreoffice-bugs mailing list