[gs-cvs] gs/src

L. Peter Deutsch lpd at casper.ghostscript.com
Fri Apr 12 12:28:17 PDT 2002


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv25131/src

Modified Files:
	gdevpdfg.c 
Log Message:

Fix: pdfwrite only updated the overprint flag in the graphics state for fill
and stroke, not for images.  Fixes SourceForge #525712.


Index: gdevpdfg.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfg.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- gdevpdfg.c	21 Feb 2002 22:24:51 -0000	1.17
+++ gdevpdfg.c	12 Apr 2002 19:28:15 -0000	1.18
@@ -1054,12 +1054,11 @@
 int
 pdf_prepare_image(gx_device_pdf *pdev, const gs_imager_state *pis)
 {
-    pdf_resource_t *pres = 0;
-    int code = pdf_prepare_drawing(pdev, pis, "/ca %g", &pres);
-
-    if (code < 0)
-	return code;
-    return pdf_end_gstate(pdev, pres);
+    /*
+     * As it turns out, this requires updating the same parameters as for
+     * filling.
+     */
+    return pdf_prepare_fill(pdev, pis);
 }
 
 /* Update the graphics state for an ImageType 1 mask. */




More information about the gs-cvs mailing list