Bug 142811 - UI: Ruler grid inaccurate for tabstops in metric units
Summary: UI: Ruler grid inaccurate for tabstops in metric units
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Tab-Stops Rulers
  Show dependency treegraph
 
Reported: 2021-06-11 22:22 UTC by mail2.0
Modified: 2023-07-29 09:51 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 mail2.0 2021-06-11 22:22:59 UTC
Description:
When placing a tabstop on the ruler with the mouse, it snaps into the nearest grid point. However, using Centimeter as measuring unit causes unexpected deviations of +- 0,01 cm from the regular grid positions, which can be detected in the Paragraph > Tabs dialog view.

Steps to Reproduce:
1. Open a new text-document
2. Make sure to use Centimeter as Measurement Unit in Tools > Options > LibreOffice Writer > General
3. Also use Centimeters with the ruler: right-click on the ruler and select "Centimeter" from the context menu
4. Choose Paper Format "A4" in Format > Page Style...
5. Set View > Zoom > 100% (only full- and half- cm tick marks should be visible on the ruler)
6. By clicking and dragging the mouse on the ruler, place a tabstop at the 16 cm tick mark
7. Check the location of tabstops in the Format > Paragraph > Tabs dialog.

Actual Results:
Position of the tabstop is shown to be 16,01 cm

Expected Results:
Tabstop should be placed at exactly 16,00 cm


Reproducible: Always


User Profile Reset: No



Additional Info:
Workaround: Zoom in more or use the Paragraph > Tabs dialog.

The behaviour was also observed in different units (e.g. milimeters), at various zoom-levels and with other tabstop positions (not too small).

Suspecting a unit-conversion/rounding/floating point error.


Tested on monitor with DPI scaling 100% (72 DPI).

Version: 7.1.3.2 (x64) / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded
Comment 1 Dieter 2021-06-29 13:23:13 UTC
I confirm it with

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 2 QA Administrators 2023-06-30 03:13:33 UTC Comment hidden (obsolete)
Comment 3 Dieter 2023-07-29 09:51:17 UTC
Can't confirm with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 42f0422d19c4d0a2fb09654fb6d1d92e50f6dd5c
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

=> RESOLVED WORKSFORME