[gs-cvs] gs/src

Igor Melichev igor at casper.ghostscript.com
Wed Mar 20 12:22:17 PST 2002


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

Modified Files:
      Tag: GS_7_0X
	gstype2.c 
Log Message:
Fix: The formula for dy6 in Type2 hflex1 instruction was wrong.
Source Forge bug #530136 "hflex1 arguments misinterpreted".
Thanks to Felix Pahl (fpahl) for spotting this.


Index: gstype2.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gstype2.c,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -u -d -r1.10.2.1 -r1.10.2.2
--- gstype2.c	22 Feb 2002 19:45:58 -0000	1.10.2.1
+++ gstype2.c	20 Mar 2002 20:22:15 -0000	1.10.2.2
@@ -778,7 +778,8 @@
 			cnext;
 		    case ce2_hflex1:
 			csp[4] = fixed_half;	/* fd/100 */
-			csp[2] = *csp, csp[3] = 0;	/* dx6, dy6 */
+			csp[2] = *csp;          /* dx6 */
+			csp[3] = -(csp[-7] + csp[-5] + csp[-1]);	/* dy6 */
 			*csp = csp[-2], csp[1] = csp[-1];	/* dx5, dy5 */
 			csp[-2] = csp[-3], csp[-1] = 0;		/* dx4, dy4 */
 			csp[-3] = 0;	/* dy3 */




More information about the gs-cvs mailing list