From: benlees <30915554+benlees@users.noreply.github.com> Date: Sun, 8 Jul 2018 00:21:51 +0000 (+1000) Subject: Intellitech print density should be signed X-Git-Tag: v2.3b6~123^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8fb750728b8bf8f4d2ac40cafc077180e4e8fd9;p=thirdparty%2Fcups.git Intellitech print density should be signed The print density ranges from -15 to +15. The output should be a signed integer. --- diff --git a/filter/rastertolabel.c b/filter/rastertolabel.c index a5ac46646e..226a3740f4 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) {