[Commit] libic/src ictrap.c,1.6,1.7

Carl Worth commit@keithp.com
Mon, 05 May 2003 09:27:11 -0700


Committed by: cworth

Update of /local/src/CVS/libic/src
In directory home.keithp.com:/tmp/cvs-serv32689/src

Modified Files:
	ictrap.c 
Log Message:
Avoid crash in IcCompositeTrapezoids when there's nothing to draw.

Index: ictrap.c
===================================================================
RCS file: /local/src/CVS/libic/src/ictrap.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ictrap.c	25 Apr 2003 21:24:38 -0000	1.6
+++ ictrap.c	5 May 2003 16:27:09 -0000	1.7
@@ -121,6 +121,9 @@
     INT16		xDst, yDst;
     INT16		xRel, yRel;
     IcFormat		*format;
+
+    if (ntraps == 0)
+	return;
     
     xDst = traps[0].left.p1.x >> 16;
     yDst = traps[0].left.p1.y >> 16;