From: msweet Date: Wed, 7 May 2014 00:26:44 +0000 (+0000) Subject: Make sure long-edge feed bounding box is correct. X-Git-Tag: v2.2b1~649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355ddf4188ce6a515df2519527042ae744448f6d;p=thirdparty%2Fcups.git Make sure long-edge feed bounding box is correct. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11848 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/filter/interpret.c b/filter/interpret.c index 4b0a43e1a4..380fa1d558 100644 --- a/filter/interpret.c +++ b/filter/interpret.c @@ -328,6 +328,20 @@ cupsRasterInterpretPPD( break; } + if (left > right) + { + temp1 = left; + left = right; + right = temp1; + } + + if (bottom > top) + { + temp1 = bottom; + bottom = top; + top = temp1; + } + h->PageSize[0] = (unsigned)(h->cupsPageSize[0] * h->cupsBorderlessScalingFactor); h->PageSize[1] = (unsigned)(h->cupsPageSize[1] *