summaryrefslogtreecommitdiffstats
path: root/src/libavoid/orthogonal.cpp
diff options
context:
space:
mode:
authorAndrew Higginson <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
committerAndrew <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
commit80960b623a99aae1402ab651b2974ef544ed3b03 (patch)
treeba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/libavoid/orthogonal.cpp
parenttry to fix bug (diff)
parentGDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff)
downloadinkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz
inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/libavoid/orthogonal.cpp')
-rw-r--r--src/libavoid/orthogonal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libavoid/orthogonal.cpp b/src/libavoid/orthogonal.cpp
index 4a7b0af2d..e0a30b246 100644
--- a/src/libavoid/orthogonal.cpp
+++ b/src/libavoid/orthogonal.cpp
@@ -1731,7 +1731,7 @@ static void buildOrthogonalChannelInfo(Router *router,
Polygon& displayRoute = (*curr)->displayRoute();
// Determine all line segments that we are interested in shifting.
// We don't consider the first or last segment of a path.
- for (size_t i = 1; i < displayRoute.size(); ++i)
+ for (size_t i = 1; i < displayRoute.size()-1; ++i)
{
if (displayRoute.ps[i - 1][dim] == displayRoute.ps[i][dim])
{