[Commit] Xr/src xrgstate.c,1.36,1.37
Carl Worth
commit at keithp.com
Thu Jun 12 00:43:32 PDT 2003
- Previous message: [Commit] Xr ChangeLog,1.27,1.28
- Next message: [Commit]
librr/src rr.h,1.5,1.6 rr_board.c,1.6,1.7 rr_client.c,1.2,1.3
rr_strbuf.c,1.1,1.2 rr_string.c,1.1,1.2 rrint.h,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: cworth
Update of /local/src/CVS/Xr/src
In directory home.keithp.com:/tmp/cvs-serv2857/src
Modified Files:
xrgstate.c
Log Message:
Scaling by 0 now causes an InvalidMatrix error
Index: xrgstate.c
===================================================================
RCS file: /local/src/CVS/Xr/src/xrgstate.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- xrgstate.c 29 May 2003 02:28:53 -0000 1.36
+++ xrgstate.c 12 Jun 2003 06:43:30 -0000 1.37
@@ -497,6 +497,9 @@
{
XrMatrix tmp;
+ if (sx == 0 || sy == 0)
+ return XrStatusInvalidMatrix;
+
_XrMatrixSetScale(&tmp, sx, sy);
XrMatrixMultiply (&gstate->ctm, &tmp, &gstate->ctm);
- Previous message: [Commit] Xr ChangeLog,1.27,1.28
- Next message: [Commit]
librr/src rr.h,1.5,1.6 rr_board.c,1.6,1.7 rr_client.c,1.2,1.3
rr_strbuf.c,1.1,1.2 rr_string.c,1.1,1.2 rrint.h,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list