From aa93ae4ba26a2967066c7afac61c0cb575663b14 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Tue, 12 Nov 2013 13:55:40 -0500 Subject: PathOutline. modify tolerance for detecting smooth joins. (Bug 1247441) Fixed bugs: - https://launchpad.net/bugs/1247441 (bzr r12797) --- src/livarot/PathOutline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/livarot/PathOutline.cpp') diff --git a/src/livarot/PathOutline.cpp b/src/livarot/PathOutline.cpp index fbfaa98aa..f15da4af7 100644 --- a/src/livarot/PathOutline.cpp +++ b/src/livarot/PathOutline.cpp @@ -1183,7 +1183,7 @@ Path::OutlineJoin (Path * dest, Geom::Point pos, Geom::Point stNor, Geom::Point const double angSi = cross (enNor,stNor); const double angCo = dot (stNor, enNor); - if (angSi == 0 && angCo > 0) { // The join is straight -> nothing to do. + if (fabs(angSi < .0000001) && angCo > 0) { // The join is straight -> nothing to do. } else { if ((angSi > 0 && width >= 0) || (angSi < 0 && width < 0)) { // This is an inside join -> join is independent of chosen JoinType. -- cgit v1.2.3