summaryrefslogtreecommitdiffstats
path: root/src/2geom/matrix.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-01-17 21:33:39 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-01-17 21:33:39 +0000
commitf80a83c8a219223210806f5ade2ba867aaaf53d8 (patch)
treee2f65a0e909a4f16e1343aae4bffd07c795e5b08 /src/2geom/matrix.cpp
parentGeom: fix a crash on assertion in sbasis-to-bezier.cpp (diff)
downloadinkscape-f80a83c8a219223210806f5ade2ba867aaaf53d8.tar.gz
inkscape-f80a83c8a219223210806f5ade2ba867aaaf53d8.zip
fix Matrix::isTranslation
(bzr r4542)
Diffstat (limited to 'src/2geom/matrix.cpp')
-rw-r--r--src/2geom/matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/matrix.cpp b/src/2geom/matrix.cpp
index a6e3025d9..6d7c772c0 100644
--- a/src/2geom/matrix.cpp
+++ b/src/2geom/matrix.cpp
@@ -120,7 +120,7 @@ bool Matrix::isIdentity(Coord const eps) const {
bool Matrix::isTranslation(Coord const eps) const {
return are_near(_c[0], 1.0) && are_near(_c[1], 0.0) &&
are_near(_c[2], 0.0) && are_near(_c[3], 1.0) &&
- !are_near(_c[4], 0.0) && !are_near(_c[5], 0.0);
+ (!are_near(_c[4], 0.0) || !are_near(_c[5], 0.0));
}
/** Answers the question "Does this matrix perform a scale, and \em{only} a Scale?"