summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorbenlees <30915554+benlees@users.noreply.github.com>2018-07-08 10:21:51 +1000
committerGitHub <noreply@github.com>2018-07-08 10:21:51 +1000
commite8fb750728b8bf8f4d2ac40cafc077180e4e8fd9 (patch)
tree36790b9ec6f619cbc9c379f8b1f33b6f3c705329 /filter
parent04e7ecda2472b79399652b303a935a8e4504b019 (diff)
downloadcups-e8fb750728b8bf8f4d2ac40cafc077180e4e8fd9.tar.gz
Intellitech print density should be signed
The print density ranges from -15 to +15. The output should be a signed integer.
Diffstat (limited to 'filter')
-rw-r--r--filter/rastertolabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/rastertolabel.c b/filter/rastertolabel.c
index a5ac46646..226a3740f 100644
--- a/filter/rastertolabel.c
+++ b/filter/rastertolabel.c
@@ -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)
{