Author: leonardo
Date: 2008-03-12 15:32:03 -0700 (Wed, 12 Mar 2008)
New Revision: 8597

Modified:
   trunk/gs/src/gxfill.c
Log:
Fix (graphics) : Optimize filling a path with a shading color (continuewd 3).

DETAILS :

Bug 689748 "gs segfaults".

An unitialized variable since rev 8510.
We had no test files for that branch, now got one.

EXPECTED DIFFERENCES :

None.      


Modified: trunk/gs/src/gxfill.c
===================================================================
--- trunk/gs/src/gxfill.c	2008-03-11 18:32:33 UTC (rev 8596)
+++ trunk/gs/src/gxfill.c	2008-03-12 22:32:03 UTC (rev 8597)
@@ -614,6 +614,7 @@
 	    else
 		(*dev_proc(pdev, get_clipping_box)) (pdev, &clip_box);
 	    rect_intersect(clip_box, shading_rect);
+	    gx_cpath_init_local(&cpath_intersection, pdev->memory);
 	    code = gx_cpath_from_rectangle(&cpath_intersection, &clip_box);
 	} else if (pcpath != NULL) {
 	    /* either *pcpath is not a rectangle, or shading cell is not a rectangle.  */

_______________________________________________
gs-cvs mailing list
gs-cvs@ghostscript.com
http://www.ghostscript.com/mailman/listinfo/gs-cvs
