summaryrefslogtreecommitdiffstats
path: root/src/helper/geom-pathstroke.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-04-06 15:21:52 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-04-06 15:21:52 +0000
commit366d6cbc86d35a795154b310b4bd9a651b84008d (patch)
treec05c135aff9989b330039c61aeea8d3f7c23b7d8 /src/helper/geom-pathstroke.cpp
parentFix a bug in pathinfo (diff)
parentherpderp (diff)
downloadinkscape-366d6cbc86d35a795154b310b4bd9a651b84008d.tar.gz
inkscape-366d6cbc86d35a795154b310b4bd9a651b84008d.zip
update to trunk
(bzr r13645.1.75)
Diffstat (limited to 'src/helper/geom-pathstroke.cpp')
-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 56200402b..eb0c432c6 100644
--- a/src/helper/geom-pathstroke.cpp
+++ b/src/helper/geom-pathstroke.cpp
@@ -411,7 +411,7 @@ void join_inside(Geom::Path& res, Geom::Curve const& outgoing)
bool decide(Geom::Curve const& incoming, Geom::Curve const& outgoing)
{
Geom::Point tang1 = Geom::unitTangentAt(reverse(incoming.toSBasis()), 0.);
- Geom::Point tang2 = outgoing.unitTangentAt(0.);
+ Geom::Point tang2 = outgoing.unitTangentAt(0.);
return (Geom::cross(tang1, tang2) < 0);
}
@@ -720,7 +720,7 @@ Geom::Path half_outline(Geom::Path const& input, double width, double miter, Lin
if (u == 0) {
res.append(temp);
} else {
- bool on_outside = decide(input[u], input[u-1]);
+ bool on_outside = decide(input[u-1], input[u]);
outline_helper(res, temp, width, on_outside, miter, join);
if (temp.size() > 0)
res.insert(res.end(), ++temp.begin(), temp.end());