From f1af6e49ee7f30d709cf59c1d43c4a123a3dd38a Mon Sep 17 00:00:00 2001 From: scislac Date: Sun, 27 Sep 2009 18:07:53 +0000 Subject: [PATCH] Patch by Adib for 382313. --- src/2geom/matrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2