summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0166de2)
raw | patch | inline | side by side (parent: 0166de2)
author | scislac <scislac@users.sourceforge.net> | |
Sun, 27 Sep 2009 18:07:53 +0000 (18:07 +0000) | ||
committer | scislac <scislac@users.sourceforge.net> | |
Sun, 27 Sep 2009 18:07:53 +0000 (18:07 +0000) |
src/2geom/matrix.cpp | patch | blob | history |
diff --git a/src/2geom/matrix.cpp b/src/2geom/matrix.cpp
index 04a21d624d0e78d7a43b51002fb397f7d1f89eec..cc91743b172235a02049192d528d2ec23310175d 100644 (file)
--- a/src/2geom/matrix.cpp
+++ b/src/2geom/matrix.cpp
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;