transformIsIdentity() now doesn't accept a zero matrix as the identity.

Added a non-zero test for one of the diagonal values.
This commit is contained in:
Tilman Sauerbeck 2006-09-12 01:15:40 +02:00
parent fc30370d14
commit 594d4019c6

View File

@ -1464,6 +1464,7 @@ transformIsIdentity(PictTransform *t)
{
return ((t->matrix[0][0] == t->matrix[1][1]) &&
(t->matrix[0][0] == t->matrix[2][2]) &&
(t->matrix[0][0] != 0) &&
(t->matrix[0][1] == 0) &&
(t->matrix[0][2] == 0) &&
(t->matrix[1][0] == 0) &&