diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-16 10:31:55 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-16 11:32:15 +0200 |
commit | a6ca6215a5ec82e833ebfcd2ebd4455cb504fd8e (patch) | |
tree | c3ece9e06021e09c613be8c221c0b4d5f352ab6f /desktop | |
parent | f4538c29079a4a940540e5194075aaeee4d0ba3a (diff) |
Use o3tl::toTwips to define MINBODY
This changes its value from 56 to the proper 57.
See 9be17c52b7c565758088b8020a543d7b840e31a7, which had
changed the previous 5-mm value to the incorrectly rounded
1-mm value; and cefce1a247a4674c5726a31b61571eab16328a0b,
which had unified the other places mentioning i19922.
Change-Id: I7186320b4c1a2a65a6f728ed8bafcbf0eb45c4cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120441
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 18ee858c72c0..916f2cc9ea14 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -808,7 +808,7 @@ void ExecuteOrientationChange() // 1mm in twips rounded // This should be in sync with MINBODY in sw/source/uibase/sidebar/PageMarginControl.hxx - constexpr tools::Long MINBODY = 56; + constexpr tools::Long MINBODY = o3tl::toTwips(1, o3tl::Length::mm); css::uno::Reference< css::document::XUndoManager > mxUndoManager( getUndoManager( SfxViewFrame::Current()->GetFrame().GetFrameInterface() ) ); |