[gs-cvs] rev 7220 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Thu Nov 23 06:14:38 PST 2006


Author: alexcher
Date: 2006-11-23 06:14:38 -0800 (Thu, 23 Nov 2006)
New Revision: 7220

Modified:
   trunk/gs/src/zupath.c
Log:
Throw rangecheck when nocurrentpoint is detected during a user path
appending to the current path. This improves error reports from
CET 11-22, 11-24, 11-25, 11-27, 11-28.

DETAILS:
With this fix committed Ghostscript matches Distiller 5 but CPSI and Tek
ignore most of the errors in user path.

DIFFERENCES:
None


Modified: trunk/gs/src/zupath.c
===================================================================
--- trunk/gs/src/zupath.c	2006-11-22 20:22:57 UTC (rev 7219)
+++ trunk/gs/src/zupath.c	2006-11-23 14:14:38 UTC (rev 7220)
@@ -680,9 +680,12 @@
 			return_error(e_typecheck);
 		    ups = data.state_after;
 		    code = (*oproc)(i_ctx_p);
-		    if (code < 0)
-			return code;
-		    argcount = 0;
+		    if (code < 0) {
+			if (code == e_nocurrentpoint)
+                            return_error(e_rangecheck); /* CET 11-22 */
+                        return code;
+		    }
+                    argcount = 0;
 		    break;
 		default:
 		    return_error(e_typecheck);



More information about the gs-cvs mailing list