summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-22 11:38:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-22 14:24:36 +0200
commit64e4363527422c913151efab0c0d0c6b8c2256c8 (patch)
tree1638f8d35df200500823873556593a2a85fe3c54 /i18nutil
parent2329128fa16a4e08a5f8fee0a83dd8b4d5c9c279 (diff)
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 <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/paper.cxx6
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)
{