summaryrefslogtreecommitdiffstats
path: root/src/helper
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-05-17 22:16:56 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-05-17 22:16:56 +0000
commitf30e5cdfe84f2a02127e7059687a4f067f14b967 (patch)
tree9b964429325b29147d3d5859fafa5b28034e650d /src/helper
parentAsk Python extensions to return UTF-8 data (diff)
downloadinkscape-f30e5cdfe84f2a02127e7059687a4f067f14b967.tar.gz
inkscape-f30e5cdfe84f2a02127e7059687a4f067f14b967.zip
Improvements to geom-pathstroke and offset LPE.
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/geom-pathstroke.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/geom-pathstroke.cpp b/src/helper/geom-pathstroke.cpp
index a073db506..7e4599beb 100644
--- a/src/helper/geom-pathstroke.cpp
+++ b/src/helper/geom-pathstroke.cpp
@@ -36,10 +36,10 @@ static Point intersection_point(Point origin_a, Point vector_a, Point origin_b,
static Circle touching_circle( D2<SBasis> const &curve, double t, double tol=0.01 )
{
D2<SBasis> dM=derivative(curve);
- if ( are_near(L2sq(dM(t)),0.) ) {
+ if ( are_near(L2sq(dM(t)), tol) ) {
dM=derivative(dM);
}
- if ( are_near(L2sq(dM(t)),0.) ) { // try second time
+ if ( are_near(L2sq(dM(t)), tol) ) { // try second time
dM=derivative(dM);
}
Piecewise<D2<SBasis> > unitv = unitVector(dM,tol);