diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-22 16:05:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-22 20:41:57 +0200 |
commit | 40a428fde0a33e7127dfa30845d65c698e408053 (patch) | |
tree | f23af1bce5b3f9a38787777722ffd88eab24d75e /i18nutil/source | |
parent | 10d1e6ff6b3a10b673696524ad59297f4e5a1c2c (diff) |
Related: tdf#151107 make "sloppy" paper fit up to 1.25pt
This reverts commit 0b6d45056ab6e1c47b4ed62eedaad02249439444.
Change-Id: Ifbc0e286be4ab3dffd0d66228fd1abe2dfc0fde0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140445
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'i18nutil/source')
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 1976880a060d..f6871e655f58 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -165,7 +165,11 @@ const PageDesc aDinTab[] = const size_t nTabSize = SAL_N_ELEMENTS(aDinTab); -#define MAXSLOPPY 21 +// tdf#151107 make this not just large enough for rounding errors on our side +// but also large enough to match where the ppd side rounded up to the next +// point. Seen with C5/C6/C65 envelopes which can be found over 1 point away +// from the values in aDinTab +#define MAXSLOPPY PT2MM100(1.25) void PaperInfo::doSloppyFit(bool bAlsoTryRotated) { |