[gs-cvs] rev 8148 - trunk/gs/lib

alexcher at ghostscript.com alexcher at ghostscript.com
Sat Jul 28 09:13:13 PDT 2007


Author: alexcher
Date: 2007-07-28 09:13:12 -0700 (Sat, 28 Jul 2007)
New Revision: 8148

Modified:
   trunk/gs/lib/pdf_main.ps
Log:
Fix a bug in the "LastPage" named action handler that pushed an extra operand
to the stack causing "/rangecheck in pdfmark". Thanks to Heiko Oberdiek for
the patch. Bug 688311.

DIFFERENCES:
None


Modified: trunk/gs/lib/pdf_main.ps
===================================================================
--- trunk/gs/lib/pdf_main.ps	2007-07-27 20:14:35 UTC (rev 8147)
+++ trunk/gs/lib/pdf_main.ps	2007-07-28 16:13:12 UTC (rev 8148)
@@ -1083,7 +1083,7 @@
     /Page 1 3 -1 roll
   } def
   /LastPage {
-    counttomark 2 add index pdfpagecount /Page exch 3 -1 roll
+    /Page pdfpagecount 3 -1 roll
   } def
   /NextPage {
     counttomark 2 add index pdfpagenumber 1 add /Page exch 3 -1 roll



More information about the gs-cvs mailing list