diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-09-12 01:15:40 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-09-12 01:15:40 +0200 |
commit | 594d4019c613b0f4bf8f48cc074ecc3c8366f1d7 (patch) | |
tree | 04f973c43851f303e3b1dcfdfd4f8c69324c28dc /render/picture.c | |
parent | fc30370d14125f86ee1192890a184881fa139546 (diff) |
transformIsIdentity() now doesn't accept a zero matrix as the identity.
Added a non-zero test for one of the diagonal values.
Diffstat (limited to 'render/picture.c')
-rw-r--r-- | render/picture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render/picture.c b/render/picture.c index a9910ab27..a3443c20e 100644 --- a/render/picture.c +++ b/render/picture.c @@ -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) && |