]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure long-edge feed bounding box is correct.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 7 May 2014 00:26:44 +0000 (00:26 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 7 May 2014 00:26:44 +0000 (00:26 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11848 a1ca3aef-8c08-0410-bb20-df032aa958be

filter/interpret.c

index 4b0a43e1a4e3eb0154f12b6dc8706ab4f522da1b..380fa1d5587e2a76d882a1ddc8c7cf9cc5063dcc 100644 (file)
@@ -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] *