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

leonardo at ghostscript.com leonardo at ghostscript.com
Tue Dec 12 17:06:05 PST 2006


Author: leonardo
Date: 2006-12-12 17:06:05 -0800 (Tue, 12 Dec 2006)
New Revision: 7499

Modified:
   trunk/gs/src/gxpdash.c
Log:
Fix : Line join was missed at 'closepath'.

DETAILS :

Debugged with CET 12-12.PS page 10.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxpdash.c
===================================================================
--- trunk/gs/src/gxpdash.c	2006-12-13 00:58:41 UTC (rev 7498)
+++ trunk/gs/src/gxpdash.c	2006-12-13 01:06:05 UTC (rev 7499)
@@ -61,6 +61,7 @@
     int drawing = wrap;
     segment_notes notes = ~sn_not_first;
     const gx_line_params *pgs_lp = gs_currentlineparams_inline(pis);
+    bool zero_length = true;
     int code;
 
     if ((code = gx_path_add_point(ppath, x0, y0)) < 0)
@@ -91,12 +92,14 @@
 		   If a subpath is degenerate (consists of a single-point closed path 
 		   or of two or more points at the same coordinates), 
 		   stroke paints it only if round line caps have been specified */
-		continue;
+		if (zero_length || pseg->type != s_line_close)
+		    continue;
 	    }
 	    dx = 0, dy = 0, length = 0;
 	} else {
   	    gs_point d;
 
+	    zero_length = false;
 	    dx = udx, dy = udy;	/* scaled as fixed */
 	    gs_imager_idtransform(pis, dx, dy, &d);
 	    length = hypot(d.x, d.y) * (1.0 / fixed_1);



More information about the gs-cvs mailing list