[gs-cvs] rev 7506 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Thu Dec 14 08:28:49 PST 2006
Author: leonardo
Date: 2006-12-14 08:28:49 -0800 (Thu, 14 Dec 2006)
New Revision: 7506
Modified:
trunk/gs/src/gdevpdfg.c
Log:
Fix (pdfwrite) : Improve the handling of SMask.
DETAILS :
The old code writes "/SMask 0 0 R" when a GState with no SMask
folows another with SMask.
Bug 689023 "regression fails with /rangecheck in --run--".
Debugged with Bug688631.pdf .
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gdevpdfg.c
===================================================================
--- trunk/gs/src/gdevpdfg.c 2006-12-14 15:50:54 UTC (rev 7505)
+++ trunk/gs/src/gdevpdfg.c 2006-12-14 16:28:49 UTC (rev 7506)
@@ -1306,7 +1306,10 @@
if (pdev->state.soft_mask_id != pis->soft_mask_id) {
char buf[20];
- sprintf(buf, "%ld 0 R", pis->soft_mask_id);
+ if (pis->soft_mask_id == 0)
+ strcpy(buf, "/None");
+ else
+ sprintf(buf, "%ld 0 R", pis->soft_mask_id);
code = pdf_open_gstate(pdev, ppres);
if (code < 0)
return code;
More information about the gs-cvs
mailing list