]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Intellitech print density should be signed
authorbenlees <30915554+benlees@users.noreply.github.com>
Sun, 8 Jul 2018 00:21:51 +0000 (10:21 +1000)
committerGitHub <noreply@github.com>
Sun, 8 Jul 2018 00:21:51 +0000 (10:21 +1000)
The print density ranges from -15 to +15.  The output should be a signed integer.

filter/rastertolabel.c

index a5ac46646e13539d90d35591b8b9e5472d98ee5b..226a3740f4bcb3f6ae589e00a00569b54f280de3 100644 (file)
@@ -368,7 +368,7 @@ StartPage(ppd_file_t         *ppd,  /* I - PPD file */
 
           if (header->cupsCompression != ~0U)
                                        /* inPrintDensity */
-           printf("\033&d%uA", 30 * header->cupsCompression / 100 - 15);
+           printf("\033&d%dA", 30 * header->cupsCompression / 100 - 15);
 
          if ((choice = ppdFindMarkedChoice(ppd, "inPrintMode")) != NULL)
          {