[gs-cvs] rev 7701 - in trunk/gs: doc src

alexcher at ghostscript.com alexcher at ghostscript.com
Wed Feb 14 19:43:27 PST 2007


Author: alexcher
Date: 2007-02-14 19:43:27 -0800 (Wed, 14 Feb 2007)
New Revision: 7701

Modified:
   trunk/gs/doc/pscet_status.txt
   trunk/gs/src/gspaint.c
Log:
Clear the current point in strokepath operator when the original path is empty
to match CET 11-21-07 and 11-28-09.

DIFFERENCES:
None.


Modified: trunk/gs/doc/pscet_status.txt
===================================================================
--- trunk/gs/doc/pscet_status.txt	2007-02-14 20:47:43 UTC (rev 7700)
+++ trunk/gs/doc/pscet_status.txt	2007-02-15 03:43:27 UTC (rev 7701)
@@ -2107,9 +2107,7 @@
 		-
 		curve saw : AOK - same as 11-01-6.
 
-11-21-7  DIFF	GS gives "F" instead of "T" for "{ 10 10 moveto strokepath
-		currentpoint moveto } stopped". Tek matches CPSI
-                assign Alex.
+11-21-7  OK  	Fixed by rev. 7701 - Alex
 
 11-21-8  AOK	Device Dependent / Resolution Dependent. CPSI ignores setflat
 		Tek and CPSI differ.
@@ -2244,7 +2242,7 @@
 
 11-28-8  DIFF	same as 11-21-4 assign: Ray.
 
-11-28-9  DIFF	upath - different returns last 2 lines assign Raph
+11-28-9  OK  	Fixed by rev. 7701 - Alex
 
 12-01-1  OK	Minor text outline differences - ADC
 

Modified: trunk/gs/src/gspaint.c
===================================================================
--- trunk/gs/src/gspaint.c	2007-02-14 20:47:43 UTC (rev 7700)
+++ trunk/gs/src/gspaint.c	2007-02-15 03:43:27 UTC (rev 7701)
@@ -31,6 +31,8 @@
 #include "gxhldevc.h"
 #include "gsutil.h"
 
+extern bool CPSI_mode;
+
 /* Define the nominal size for alpha buffers. */
 #define abuf_nominal_SMALL 500
 #define abuf_nominal_LARGE 2000
@@ -455,7 +457,10 @@
     if (code < 0)
 	return code;
     /* NB: needs testing with PCL */
-    gx_setcurrentpoint(pgs, fixed2float(spath.position.x), fixed2float(spath.position.y));
+    if (CPSI_mode && gx_path_is_void(pgs->path))
+        pgs->current_point_valid = false;
+    else
+        gx_setcurrentpoint(pgs, fixed2float(spath.position.x), fixed2float(spath.position.y));
     return 0;
 
 }



More information about the gs-cvs mailing list