summaryrefslogtreecommitdiff
path: root/render/picture.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-12 01:15:40 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-10-06 23:39:22 +0200
commita2d528068fc0446e441d7116359f314a211ae004 (patch)
treee0eb064e3562d51d0201aca735ede3a107d46345 /render/picture.c
parentdce3f2a9ce1742bd21794d5eea86ebbd27fa4b62 (diff)
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 594d4019c613b0f4bf8f48cc074ecc3c8366f1d7 commit)
Diffstat (limited to 'render/picture.c')
-rw-r--r--render/picture.c1
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) &&