Skip to content

Commit 1244db6

Browse files
committed
Also allow a length of 841 points.
1 parent 7ea2f68 commit 1244db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/ippevepcl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pcl_start_page(
129129
pcl_top = header->HWResolution[1] / 6;
130130
pcl_bottom = header->cupsHeight - header->HWResolution[1] / 6 - 1;
131131

132-
if (header->PageSize[1] == 842 && header->cupsWidth >= (8 * header->HWResolution[0]))
132+
if ((header->PageSize[1] == 841 || header->PageSize[1] == 842) && header->cupsWidth >= (8 * header->HWResolution[0]))
133133
{
134134
/* A4 gets special side margins to expose an 8" print area */
135135
pcl_left = (header->cupsWidth - 8 * header->HWResolution[0]) / 2;

0 commit comments

Comments
 (0)