From 2d6bb6e69feb0a75be98d03f550258d4b7540aef Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Fri, 23 Aug 2019 18:09:32 +0200 Subject: "cups"/"pwgraster" output device: Reduced page size comparison tolerances Before each page gets rendered its size is compared to the page sizes of the PPD file to select the actual page size for the output. Reduced the tolerances from 7% for the long edge and 5% for the short edge to 1%, as before easily wrong sizes got picked (See also bug 701438). --- cups/gdevcups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cups') diff --git a/cups/gdevcups.c b/cups/gdevcups.c index 9f6732309..6b1a69e4d 100644 --- a/cups/gdevcups.c +++ b/cups/gdevcups.c @@ -3470,8 +3470,8 @@ cups_put_params(gx_device *pdev, /* I - Device info */ * Find the matching page size... */ -#define LONG_EDGE_LENGTH_MATCH_LIMIT 0.07 -#define SHORT_EDGE_LENGTH_MATCH_LIMIT 0.05 +#define LONG_EDGE_LENGTH_MATCH_LIMIT 0.01 +#define SHORT_EDGE_LENGTH_MATCH_LIMIT 0.01 #define PAGESIZE_SCORE_NAME 3 #define PAGESIZE_SCORE_SIZE_MARGINS 2 #define PAGESIZE_SCORE_SIZE 1 -- cgit v1.2.1