summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2019-08-25 12:45:27 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2019-08-25 12:45:27 +0200
commit3283e6d5ce389f5b6d5ebf4adb309b1259a5fe1d (patch)
tree5df56003aff8917ee2811674702ed79bdedf6cec /cups
parent3e09cede82a3b8c5c7a6e30a5934336f20dfa1f8 (diff)
downloadghostpdl-3283e6d5ce389f5b6d5ebf4adb309b1259a5fe1d.tar.gz
"cups"/"pwgraster" output device: Small fix on size matching improvements
This is a fix for one little oversight on the changes to support matching the input page size against the imageable areas of the PPD's page sizes. This completes the fix of bug 701438.
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index 5e5f9c741..54552b908 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -3933,7 +3933,10 @@ cups_put_params(gx_device *pdev, /* I - Device info */
cups_mediasize[i] = mediasize[i];
for (i = 0; i < 4; i ++)
cups_margins[i] = margins[i] * 72.0;
- if (score > 0 && score < 5000) {
+ if (best_score > 0 && best_score < 5000) {
+#ifdef CUPS_DEBUG
+ dmputs(pdev->memory, "DEBUG: Imageable area fit!\n");
+#endif /* CUPS_DEBUG */
/* Page size matched by imageable area */
for (i = 0; i < 2; i ++)
mediasize[i] = cups->MediaSize[i];