]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Also allow a length of 841 points.
authorMichael R Sweet <msweet@msweet.org>
Mon, 13 Apr 2026 18:00:52 +0000 (14:00 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 13 Apr 2026 18:00:52 +0000 (14:00 -0400)
tools/ippevepcl.c

index f20940a192b88816248b6e82a223e7ac689fb16f..fef5479de7c17c25de7abe3c41b1e5f68d8f6394 100644 (file)
@@ -129,7 +129,7 @@ pcl_start_page(
   pcl_top    = header->HWResolution[1] / 6;
   pcl_bottom = header->cupsHeight - header->HWResolution[1] / 6 - 1;
 
-  if (header->PageSize[1] == 842 && header->cupsWidth >= (8 * header->HWResolution[0]))
+  if ((header->PageSize[1] == 841 || header->PageSize[1] == 842) && header->cupsWidth >= (8 * header->HWResolution[0]))
   {
    /* A4 gets special side margins to expose an 8" print area */
     pcl_left  = (header->cupsWidth - 8 * header->HWResolution[0]) / 2;