[gs-cvs] rev 8221 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Fri Aug 31 01:27:16 PDT 2007
Author: leonardo
Date: 2007-08-31 01:27:16 -0700 (Fri, 31 Aug 2007)
New Revision: 8221
Modified:
trunk/gs/src/gdevpdfi.c
Log:
Fix (pdfwrite) : A crash with incorrect shading.
DETAILS :
Bug 689394 "SEGV with MSVC7 run time checking in Type 7 shading."
See comment in code.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gdevpdfi.c
===================================================================
--- trunk/gs/src/gdevpdfi.c 2007-08-31 05:43:44 UTC (rev 8220)
+++ trunk/gs/src/gdevpdfi.c 2007-08-31 08:27:16 UTC (rev 8221)
@@ -1393,7 +1393,13 @@
case pattern_manage__shfill_doesnt_need_path:
return 0; /* gdev_pdf_fill_path still does need a path. */
case pattern_manage__handles_clip_path:
- return 1;
+ /* This is important when the default implementation of
+ of fill_path is called due to a failure in setcolor
+ or so, for example when a shading is incorfect.
+ The test case is the unfixed (buggy) Genoa test 446-01.ps .
+ In this case pdfwrite converts the object into rectangles,
+ and the clipping device has to be set up. */
+ return 0;
}
return_error(gs_error_unregistered);
}
More information about the gs-cvs
mailing list