diff options
| author | Ted Gould <ted@gould.cx> | 2009-11-29 19:01:07 +0000 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2009-11-29 19:01:07 +0000 |
| commit | 29d3c0b15028e61f176df3a75189bf0959d0d03e (patch) | |
| tree | 727afe596c693a9bdd098d72618abd9ceb0d1969 /src/2geom/matrix.cpp | |
| parent | Add the build dir dbus directory to grab some headerfiles for distcheck. (diff) | |
| parent | hopefully fix build on linux (diff) | |
| download | inkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.tar.gz inkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.zip | |
Merging in from trunk
(bzr r8254.1.37)
Diffstat (limited to 'src/2geom/matrix.cpp')
| -rw-r--r-- | src/2geom/matrix.cpp | 3 |
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; |
