From: msweet Date: Mon, 1 Jun 2015 16:53:07 +0000 (+0000) Subject: Fix PageRegion dimensions (STR #4637) X-Git-Tag: v2.2b1~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1db56d49cc98cac36262602c704d7b5caa10714;p=thirdparty%2Fcups.git Fix PageRegion dimensions (STR #4637) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12682 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 8f7d3f5536..96f7db0c9c 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3000,7 +3000,7 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ _cupsStrFormatd(twidth, twidth + sizeof(twidth), pwg->width * 72.0 / 2540.0, loc); _cupsStrFormatd(tlength, tlength + sizeof(tlength), pwg->length * 72.0 / 2540.0, loc); - cupsFilePrintf(fp, "*PageRegion %s: \"<>setpagedevice\"\n", pwg->ppd, pwg->width * 72.0 / 2540.0, pwg->length * 72.0 / 2540.0); + cupsFilePrintf(fp, "*PageRegion %s: \"<>setpagedevice\"\n", pwg->ppd, twidth, tlength); } } cupsFilePuts(fp, "*CloseUI: *PageRegion\n");