summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2019-08-23 18:09:32 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2019-08-23 18:09:32 +0200
commit2d6bb6e69feb0a75be98d03f550258d4b7540aef (patch)
treebd7f1c74119da618f96179266692d360532bc37d /cups
parent5ab40cc018d8ac76758cebc7b4962e9b19fffc86 (diff)
downloadghostpdl-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.c4
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