From 942e502f4b699ff4393719d9b69a9ec15d22f795 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 17 Jan 2008 21:33:39 +0000 Subject: [PATCH] fix Matrix::isTranslation --- src/2geom/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?" -- 2.30.2