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

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

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) &&