[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1603-g3283e6d
[email protected] (Till Kamppeter)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 3283e6d5ce389f5b6d5ebf4adb309b1259a5fe1d (commit)
from 3e09cede82a3b8c5c7a6e30a5934336f20dfa1f8 (commit)
----------------------------------------------------------------------
commit 3283e6d5ce389f5b6d5ebf4adb309b1259a5fe1d
Author: Till Kamppeter <[email protected]>
Date: Sun Aug 25 12:45:27 2019 +0200
"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.
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index 5e5f9c7..54552b9 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];
Summary of changes:
cups/gdevcups.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)