summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-02-02 21:02:26 +0100
committerTill Kamppeter <till.kamppeter@gmail.com>2012-02-02 21:27:50 +0100
commitc3464da3ee42b8af645af6eadabea4977d948b1a (patch)
treeddcc1602c0c76b7d41e925b765ea818468f375c5
parentc12ed06596207d895739b41e5c920af0aa48a2ff (diff)
downloadghostpdl-c3464da3ee42b8af645af6eadabea4977d948b1a.tar.gz
CUPS Raster: More on improving page size fitting
Raised the tolerance of matching the document's page sizes with the PPD's page sizes on the short dimension to 2 %. This also covers the overspray full-bleed page sizes of HPLIP.
-rw-r--r--gs/cups/gdevcups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/cups/gdevcups.c b/gs/cups/gdevcups.c
index e3d5b793b..e5a1242fa 100644
--- a/gs/cups/gdevcups.c
+++ b/gs/cups/gdevcups.c
@@ -3332,9 +3332,9 @@ cups_put_params(gx_device *pdev, /* I - Device info */
{
if (size->length == 0 || size->width == 0) continue;
if (fabs(cups->MediaSize[1] - size->length)/size->length <
- (size->length > size->width ? 0.05 : 0.01) &&
+ (size->length > size->width ? 0.05 : 0.02) &&
fabs(cups->MediaSize[0] - size->width)/size->width <
- (size->width > size->length ? 0.05 : 0.01) &&
+ (size->width > size->length ? 0.05 : 0.02) &&
#ifdef CUPS_RASTER_SYNCv1
((strlen(cups->header.cupsPageSizeName) == 0) ||
(strcasecmp(cups->header.cupsPageSizeName, size->name) == 0)) &&