[gs-commits] rev 11807 - trunk/gs/psi

chrisl at ghostscript.com chrisl at ghostscript.com
Thu Oct 14 15:01:57 UTC 2010


Author: chrisl
Date: 2010-10-14 15:01:56 +0000 (Thu, 14 Oct 2010)
New Revision: 11807

Modified:
   trunk/gs/psi/zfapi.c
Log:
If we're passed an unexpected object instead of a glyph name object
fall back to rendering the notdef.

This is not identical, but is closer to the behaviour of the AFS code
under these conditions.

Highlighted by Bug 691656.

No cluster differences expected.



Modified: trunk/gs/psi/zfapi.c
===================================================================
--- trunk/gs/psi/zfapi.c	2010-10-14 14:57:36 UTC (rev 11806)
+++ trunk/gs/psi/zfapi.c	2010-10-14 15:01:56 UTC (rev 11807)
@@ -2006,6 +2006,9 @@
     
     I->ff = ff_stub;
     if(bBuildGlyph && !bCID) {
+        if (r_type(op) != t_name) {
+            name_enter_string (imemory, ".notdef", op);
+        }
         check_type(*op, t_name);
     } else {
 



More information about the gs-commits mailing list