From: msweet Date: Wed, 2 Mar 2016 20:23:04 +0000 (+0000) Subject: Make sure cupsPageSize is initialized. X-Git-Tag: v2.2b1~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ce95109669f9c8572b41d05cdd228f3756a7ebb;p=thirdparty%2Fcups.git Make sure cupsPageSize is initialized. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13114 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/filter/raster.c b/filter/raster.c index 0eef0ccf04..302f72cd50 100644 --- a/filter/raster.c +++ b/filter/raster.c @@ -139,6 +139,10 @@ cupsRasterInitPWGHeader( h->PageSize[0] = (unsigned)(72 * media->width / 2540); h->PageSize[1] = (unsigned)(72 * media->length / 2540); + /* This never gets written but is needed for some applications */ + h->cupsPageSize[0] = 72.0f * media->width / 2540.0f; + h->cupsPageSize[1] = 72.0f * media->length / 2540.0f; + h->ImagingBoundingBox[2] = h->PageSize[0]; h->ImagingBoundingBox[3] = h->PageSize[1];