summaryrefslogtreecommitdiffstats
path: root/src/livarot
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-08-15 20:55:21 +0000
committertavmjong-free <tavmjong@free.fr>2016-08-15 20:55:21 +0000
commit7f779f28e67eac1653e0f7751bb3f224b67894c7 (patch)
treeed872536d8fe377caf2ba22181f8dbfc6a82cf35 /src/livarot
parentFix bug reported in http://www.viva64.com/en/b/0419/ (diff)
downloadinkscape-7f779f28e67eac1653e0f7751bb3f224b67894c7.tar.gz
inkscape-7f779f28e67eac1653e0f7751bb3f224b67894c7.zip
Fix a bunch of errors as reported at http://www.viva64.com/en/b/0419/
(bzr r15059)
Diffstat (limited to 'src/livarot')
-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 1c42301da..0683d8ae8 100644
--- a/src/livarot/PathOutline.cpp
+++ b/src/livarot/PathOutline.cpp
@@ -1195,7 +1195,7 @@ Path::OutlineJoin (Path * dest, Geom::Point pos, Geom::Point stNor, Geom::Point
if ((dest->descr_cmd[dest->descr_cmd.size() - 1]->getType() == descr_lineto) && (nType == descr_lineto)) {
Geom::Point const biss = unit_vector(Geom::rot90( stNor - enNor ));
double c2 = Geom::dot (biss, enNor);
- if (fabs(c2) > 0.707107) { // apply only to obtuse angles
+ if (fabs(c2) > M_SQRT1_2) { // apply only to obtuse angles
double l = width / c2;
PathDescrLineTo* nLine = dynamic_cast<PathDescrLineTo*>(dest->descr_cmd[dest->descr_cmd.size() - 1]);
nLine->p = pos + l*biss; // relocate to bisector