i18nutil/source/utility/paper.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 64e4363527422c913151efab0c0d0c6b8c2256c8 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 22 11:38:27 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 22 14:24:36 2022 +0200 Related: tdf#151107 make "sloppy" paper fit up to 1.25pt Change-Id: I7fe804732849c09659d8d3da41aa1d0650cefb26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140410 Tested-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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) {