diff options
| author | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-06-30 07:39:43 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-06-30 07:39:43 +0000 |
| commit | a0ae5a69d84a21b88cf873a91a45ef95620ae972 (patch) | |
| tree | 461b7e9a66948ca1b2b2418552abf77ee277a2ab /src | |
| parent | Update XML repr when objects are added to selector & some code cleanup (diff) | |
| parent | avoid zero SBasis curve. (Bug 1593963) (diff) | |
| download | inkscape-a0ae5a69d84a21b88cf873a91a45ef95620ae972.tar.gz inkscape-a0ae5a69d84a21b88cf873a91a45ef95620ae972.zip | |
Merge changes from trunk
(bzr r14949.1.32)
Diffstat (limited to 'src')
| -rw-r--r-- | src/2geom/sbasis-geometric.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis-geometric.cpp b/src/2geom/sbasis-geometric.cpp index 19eccc451..3fe27748e 100644 --- a/src/2geom/sbasis-geometric.cpp +++ b/src/2geom/sbasis-geometric.cpp @@ -227,7 +227,7 @@ Geom::unitVector(D2<SBasis> const &V_in, double tol, unsigned order){ // -This approach is numerically bad. Find a stable way to rescale V_in to have non vanishing ends. // -This done, unitVector will have jumps at zeros: fill the gaps with arcs of circles. D2<SBasis> V = RescaleForNonVanishingEnds(V_in); - if (V[0].isZero(0) && V[1].isZero(0)) + if (V[0].isZero(tol) && V[1].isZero(tol)) return Piecewise<D2<SBasis> >(D2<SBasis>(Linear(1),SBasis())); SBasis x = V[0], y = V[1]; |
