Bug 171912 - Dimension Line dialog: preview shows rounding errors using different measurement units
Summary: Dimension Line dialog: preview shows rounding errors using different measurem...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
26.8.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-29 19:59 UTC by Andreas Heinisch
Modified: 2026-04-30 08:35 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Heinisch 2026-04-29 19:59:15 UTC
Description:
In the Dimension Line dialog, changing the measurement units while using a higher number of decimal places with automatic mode disabled results in incorrect rounding.


Steps to Reproduce:
1. Open Draw
2. In the left toolbar, open the "Lines and Arrows" panel
3. Choose "Dimension Line"
4. Draw any dimension line in the workspace
5. Select the inserted dimension line
6. Right-click the object and choose "Dimensions..." from the context menu
7. In the dialog, increase the "Decimal places" to 5
8. Uncheck the "Automatic" checkbox
9. Switch "Show measurement units" from Millimeter to Centimeter to Meter

Actual Results:
Preview shows 124.04000 using Millimeters
Preview shows 12.40000  using Centimeters
Preview shows 0.12000   using Meters


Expected Results:
Preview shows 124.04000 using Millimeters
Preview shows 12.40400  using Centimeters
Preview shows 0.12404   using Meters

Not rounding away fractions.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 90890974c2e843e615a95286e29c3114342f2b28
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded

Happens after the new feature from bug 138414.