summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathOutline.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2013-11-12 18:55:40 +0000
committerapenner <penner@vaxxine.com>2013-11-12 18:55:40 +0000
commitaa93ae4ba26a2967066c7afac61c0cb575663b14 (patch)
tree8804ef9f66df89e792f6dd1d64addb22ea0e97c9 /src/livarot/PathOutline.cpp
parentPartial fix for blocker bug 1163449: "Imported bitmap appear blurry when zoom... (diff)
downloadinkscape-aa93ae4ba26a2967066c7afac61c0cb575663b14.tar.gz
inkscape-aa93ae4ba26a2967066c7afac61c0cb575663b14.zip
PathOutline. modify tolerance for detecting smooth joins. (Bug 1247441)
Fixed bugs: - https://launchpad.net/bugs/1247441 (bzr r12797)
Diffstat (limited to 'src/livarot/PathOutline.cpp')
-rw-r--r--src/livarot/PathOutline.cpp2
1 files changed, 1 insertions, 1 deletions
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.