Bug 107878 - element sizes are displayed wrong
Summary: element sizes are displayed wrong
Status: RESOLVED DUPLICATE of bug 99711
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.3.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-15 19:56 UTC by Roland Illig
Modified: 2017-05-19 17:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of Draw, as it displays wrong element sizes (60.44 KB, image/png)
2017-05-15 19:58 UTC, Roland Illig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Illig 2017-05-15 19:56:12 UTC
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
Comment 1 Roland Illig 2017-05-15 19:58:20 UTC
Created attachment 133340 [details]
Screenshot of Draw, as it displays wrong element sizes
Comment 2 Buovjaga 2017-05-19 17:11:46 UTC
Yep, this happens only in the sidebar. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 99711 ***