summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2948ab)
raw | patch | inline | side by side (parent: d2948ab)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 17 Jan 2008 21:33:39 +0000 (21:33 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 17 Jan 2008 21:33:39 +0000 (21:33 +0000) |
src/2geom/matrix.cpp | patch | blob | history |
diff --git a/src/2geom/matrix.cpp b/src/2geom/matrix.cpp
index a6e3025d9ce2f0be6219f0da974e259de3c9cef7..6d7c772c067a1dc693ffb730f04eb8517bb6200f 100644 (file)
--- a/src/2geom/matrix.cpp
+++ b/src/2geom/matrix.cpp
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?"