diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2019-08-23 18:09:32 +0200 |
---|---|---|
committer | Till Kamppeter <till.kamppeter@gmail.com> | 2019-08-23 18:09:32 +0200 |
commit | 2d6bb6e69feb0a75be98d03f550258d4b7540aef (patch) | |
tree | bd7f1c74119da618f96179266692d360532bc37d /cups | |
parent | 5ab40cc018d8ac76758cebc7b4962e9b19fffc86 (diff) | |
download | ghostpdl-2d6bb6e69feb0a75be98d03f550258d4b7540aef.tar.gz |
"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).
Diffstat (limited to 'cups')
-rw-r--r-- | cups/gdevcups.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |