diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2019-08-25 12:45:27 +0200 |
---|---|---|
committer | Till Kamppeter <till.kamppeter@gmail.com> | 2019-08-25 12:45:27 +0200 |
commit | 3283e6d5ce389f5b6d5ebf4adb309b1259a5fe1d (patch) | |
tree | 5df56003aff8917ee2811674702ed79bdedf6cec /cups | |
parent | 3e09cede82a3b8c5c7a6e30a5934336f20dfa1f8 (diff) | |
download | ghostpdl-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.c | 5 |
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]; |