]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix PageRegion dimensions (STR #4637)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 1 Jun 2015 16:53:07 +0000 (16:53 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 1 Jun 2015 16:53:07 +0000 (16:53 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12682 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/ppd-cache.c

index 8f7d3f553641b6a8448825a81804ef31e518f6f1..96f7db0c9c2e71608940d7b42b873a24f4df8c67 100644 (file)
@@ -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: \"<</PageSize[%.1f %.1f]>>setpagedevice\"\n", pwg->ppd, pwg->width * 72.0 / 2540.0, pwg->length * 72.0 / 2540.0);
+        cupsFilePrintf(fp, "*PageRegion %s: \"<</PageSize[%s %s]>>setpagedevice\"\n", pwg->ppd, twidth, tlength);
       }
     }
     cupsFilePuts(fp, "*CloseUI: *PageRegion\n");