Bug 126493 - EDITING: Objects don't snap to grid properly
Summary: EDITING: Objects don't snap to grid properly
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All All
: medium normal
Assignee: Tamás Zolnai
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Grid-Helplines
  Show dependency treegraph
 
Reported: 2019-07-21 12:26 UTC by gbtrans
Modified: 2025-10-15 21:23 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 gbtrans 2019-07-21 12:26:31 UTC
Objects (such as a rectangle) do not snap exactly to gridlines in LO Writer.
If I try to move the object horizontally, its left edge always seem to snap to about 0.18cm to the right of the nearest vertical gridline. However, if I move it vertically, then it snaps exactly to the nearest horizontal gridline. I've tried this with a rectangle exactly a whole number of grid points wide and high. In all other LO apps that I've tried (Calc, Impress, Draw), objects appear to snap exactly to the nearest horizontal and vertical gridlines (as they should).
Comment 1 Harald Berger 2019-07-24 12:29:38 UTC
I confirm the bug below

Windows 10 Home; Version 1903; 64-Bit

Version: 6.2.5.2 (x64)
Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded
Comment 3 QA Administrators 2021-07-24 03:42:36 UTC Comment hidden (noise)
Comment 4 QA Administrators 2025-05-12 03:10:46 UTC Comment hidden (noise)
Comment 5 Commit Notification 2025-10-14 10:59:44 UTC
Tamás Zolnai committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d74bf7117b6f71b222ba06c4341d51524c35952e

tdf48245, tdf126493: Fix snap to grid accuracy in Writer

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.