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

alexcher at ghostscript.com alexcher at ghostscript.com
Sun Feb 24 21:48:45 PST 2008


Author: alexcher
Date: 2008-02-24 21:48:45 -0800 (Sun, 24 Feb 2008)
New Revision: 8546

Modified:
   trunk/gs/lib/pdf2dsc.ps
Log:
Add a check for null value. Since rev. 6956 following Adobe implementation
Ghostscript doesn't accept null as a key in dictionary look-up. Bug 689696.

DIFFERENCES:
None, not covered by the regression test.


Modified: trunk/gs/lib/pdf2dsc.ps
===================================================================
--- trunk/gs/lib/pdf2dsc.ps	2008-02-25 04:20:47 UTC (rev 8545)
+++ trunk/gs/lib/pdf2dsc.ps	2008-02-25 05:48:45 UTC (rev 8546)
@@ -200,7 +200,9 @@
 
          % output the page label
          (\() .pagePrefix
-         PageToString .pageCounterType known { % format the page number
+         .pageCounterType //null ne dup {
+           PageToString .pageCounterType known and
+         } if { % format the page number
            .pageCounter dup 0 gt { % don't try to format nonpositive numbers
              PageToString .pageCounterType get exec
            } {



More information about the gs-cvs mailing list