diff options
author | Jonathan Clark <jonathan@libreoffice.org> | 2025-01-23 09:04:10 -0700 |
---|---|---|
committer | Jonathan Clark <jonathan@libreoffice.org> | 2025-01-23 22:38:33 +0100 |
commit | 43fc662520e5488cbeadd6eb60a24374a837dca4 (patch) | |
tree | 6289d988f93ca71487064aa07b50525014915c69 /icon-themes/breeze_dark_svg/cmd/32/ru | |
parent | 15e917c9f7f95e48c2a6316b458822212b032e54 (diff) |
tdf#164803 sw: Fix SwTextSizeInfo applying grid metrics without grid
HEADmaster
Writer has two grid attributes: the document-level grid item, which
controls whether the grid is enabled; and a paragraph-level grid item,
which controls whether the document grid applies to the paragraph.
Previously, SwTextSizeInfo populated its snap-to-grid flag based only on
the paragraph-level attribute. Downstream code was expected to
double-check that the grid is actually enabled using the document-level
item. As shown by tdf#164803, this is error-prone.
Now, SwTextSizeInfo only sets the snap-to-grid flag when the grid is
enabled by both attributes.
Change-Id: I6528f653748de942f42da11e34ff340cb3db37e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180676
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'icon-themes/breeze_dark_svg/cmd/32/ru')
0 files changed, 0 insertions, 0 deletions