summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2011-11-18 14:09:04 -0700
committerHenry Stiles <henry.stiles@artifex.com>2011-11-18 14:09:04 -0700
commit3457a11ec419dcce4cd9e444674967b4dd5e8740 (patch)
treef91bf7ea8102156aa0f92382971cec7a3aa917d1 /pcl
parentf482ab7c57e8a20f760be5b329bee528a66e7927 (diff)
The indeterminism in the test file TIFFOffsetA4PL.pcl was caused by
the new custom page size implementation. The new code updates the current page structure instead of creating a new one - later the page size logic doesn't recognize a page size change and doesn't clear the page (erasepage) properly. The custom page size implementation is less than ideal, but the simple fix here is to just erase the page unconditionally when the custom page size command is received. There was no bug reported for this problem.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcpage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcl/pcpage.c b/pcl/pcpage.c
index cb4d1f18f..8db2661a7 100644
--- a/pcl/pcpage.c
+++ b/pcl/pcpage.c
@@ -1008,6 +1008,8 @@ set_logical_page(
pcur_paper->offset_landscape = pl_get_int16(plogpage->TopOffset) * 10;
new_page_size(pcs, pcur_paper, false, false);
+ gs_erasepage(pcs->pgs);
+ pcs->page_marked = false;
return 0;
}