From 930591ebe1aaeb5827db8e0c66e2ef0329f7dcf0 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sat, 21 May 2016 10:21:05 +0200 Subject: Adjust some thresholds for finding intersections in elliptical arcs Fixed bugs: - https://launchpad.net/bugs/1479167 (bzr r14906) --- src/2geom/elliptical-arc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/2geom') diff --git a/src/2geom/elliptical-arc.cpp b/src/2geom/elliptical-arc.cpp index a0e379a21..ec62b4be2 100644 --- a/src/2geom/elliptical-arc.cpp +++ b/src/2geom/elliptical-arc.cpp @@ -570,13 +570,13 @@ void EllipticalArc::_filterIntersections(std::vector &xs, boo std::vector::reverse_iterator i = xs.rbegin(), last = xs.rend(); while (i != last) { Coord &t = is_first ? i->first : i->second; - assert(are_near(_ellipse.pointAt(t), i->point(), 1e-6)); + assert(are_near(_ellipse.pointAt(t), i->point(), 1e-5)); t = timeAtAngle(t); if (!unit.contains(t)) { xs.erase((++i).base()); continue; } else { - assert(are_near(pointAt(t), i->point(), 1e-6)); + assert(are_near(pointAt(t), i->point(), 1e-5)); ++i; } } -- cgit v1.2.3