summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2009-09-27 18:07:53 +0000
committerscislac <scislac@users.sourceforge.net>2009-09-27 18:07:53 +0000
commit012f594fb4e04db9b0b58d94ce30884694a55d43 (patch)
tree8215c731ec6d1eb03b08e68d38860403adcab2a4
parentPatch from Adrian for 437550. (diff)
downloadinkscape-012f594fb4e04db9b0b58d94ce30884694a55d43.tar.gz
inkscape-012f594fb4e04db9b0b58d94ce30884694a55d43.zip
Patch by Adib for 382313.
(bzr r8659)
-rw-r--r--src/2geom/matrix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/2geom/matrix.cpp b/src/2geom/matrix.cpp
index 04a21d624..cc91743b1 100644
--- a/src/2geom/matrix.cpp
+++ b/src/2geom/matrix.cpp
@@ -179,7 +179,8 @@ Matrix Matrix::inverse() const {
Matrix d;
Geom::Coord const determ = det();
- if (!are_near(determ, 0.0)) {
+ // the numerical precision of the determinant must be significant
+ if (fabs(determ) > 1e-18) {
Geom::Coord const ideterm = 1.0 / determ;
d._c[0] = _c[3] * ideterm;