summaryrefslogtreecommitdiffstats
path: root/include/registry/regdllapi.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-05-24 12:06:55 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-05-24 13:58:07 +0200
commita3150fc8a59662ce8630cfc64fec9cd083ac7d36 (patch)
treeb281dceba669e93afa43abfec35feaa74ac14942 /include/registry/regdllapi.h
parenttdf#160984 sw continuous endnotes: fix the endnote separator length (diff)
downloadcore-master.tar.gz
core-master.zip
tdf#145972 sw image dialog: fix bad rel width w/ pt units and kept aspect ratio HEADmaster
Regression from commit 02c435082058ecf7f9d4d73cb47d31d0218dc10d (sw keep aspect ratio: add filter for this setting, 2021-06-07), once UI units are set to poins (instead of cms), the image dialog for the bugdoc was showing 5% width instead of 48%. 48% is roughtly correct, visually the image is taking half of the body frame width. Previously the bad rel size didn't happen because we didn't save the "keep aspect ratio" to documents, so it was off by the time the dialog was initialized. Fix the problem by introducing a new flag, so we can differentiate between the user changine the width or height vs the dialog being initialized. RelSizeClickHdl() is meant to adjust the other axis in the user case, and this is not wanted in the init case. A higher level fix would be to make sure once aspect ratio is kept, that ratio is stored in documents explicitly, so we can say 50% wide with e.g. 4:3 ratio, that would avoid all this trouble by even looking at the calculated sizes when we want to work with percents. This storing of the aspect ratio is not done here. Change-Id: I901e7f6d5e6f7f1349d7beeb05985ddbf99a34a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168015 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'include/registry/regdllapi.h')
0 files changed, 0 insertions, 0 deletions