[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1601-g2d6bb6e

[email protected] (Till Kamppeter)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  2d6bb6e69feb0a75be98d03f550258d4b7540aef (commit)
      from  5ab40cc018d8ac76758cebc7b4962e9b19fffc86 (commit)

----------------------------------------------------------------------
commit 2d6bb6e69feb0a75be98d03f550258d4b7540aef
Author: Till Kamppeter <[email protected]>
Date:   Fri Aug 23 18:09:32 2019 +0200

    "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).

diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index 9f67323..6b1a69e 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


Summary of changes:
 cups/gdevcups.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.