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

leonardo at ghostscript.com leonardo at ghostscript.com
Mon Nov 19 12:36:08 PST 2007


Author: leonardo
Date: 2007-11-19 12:36:07 -0800 (Mon, 19 Nov 2007)
New Revision: 8386

Modified:
   trunk/gs/src/gdevp14.c
Log:
Fix (transparency) : Wrong background color of a soft mack group.

DETAILS :

Bug 689531 "Regression: PDF file has undesired extra gray object.".

The old code used the 0th component of the background color
instead its gray equivalent.  The bug was introduced when 
working on bug 687176.

EXPECTED DIFFERENCES :

None (comparefiles don't include a test for it; to be added after closing the bug).


Modified: trunk/gs/src/gdevp14.c
===================================================================
--- trunk/gs/src/gdevp14.c	2007-11-19 20:29:19 UTC (rev 8385)
+++ trunk/gs/src/gdevp14.c	2007-11-19 20:36:07 UTC (rev 8386)
@@ -2240,7 +2240,7 @@
 					       "pdf14_push_transparency_mask");
 
     if (ptmp->Background_components)
-	bg_alpha = (int)(255 * ptmp->Background[0] + 0.5);
+	bg_alpha = (int)(255 * ptmp->GrayBackground + 0.5);
     if_debug1('v', "begin transparency mask, bg_alpha = %d\n", bg_alpha);
     memcpy(transfer_fn, ptmp->transfer_fn, size_of(ptmp->transfer_fn));
     return pdf14_push_transparency_mask(pdev->ctx, &pdev->ctx->rect, bg_alpha,



More information about the gs-cvs mailing list