diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-09-16 01:27:54 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-09-16 01:27:54 +0000 |
| commit | 07eaeb8f391513dad456cc4d1a5939d2bb2f9c65 (patch) | |
| tree | f2c503eaba0bf3ad33cd39fa78cccf281fa03e06 /src/2geom/path.cpp | |
| parent | add verticalpattern checkbox to path-along-path and some parameters that are ... (diff) | |
| download | inkscape-07eaeb8f391513dad456cc4d1a5939d2bb2f9c65.tar.gz inkscape-07eaeb8f391513dad456cc4d1a5939d2bb2f9c65.zip | |
merge in 2geom rev. 1154
(bzr r3756)
Diffstat (limited to 'src/2geom/path.cpp')
| -rw-r--r-- | src/2geom/path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index f05d3b0cf..79dc0a5f4 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -121,14 +121,14 @@ void Path::appendPortionTo(Path &ret, double from, double to) const { delete v; return; } - const_iterator toi = inc(begin(), (unsigned)ti); + const_iterator toi = inc(begin(), (unsigned)ti); if(ff != 1.) { Curve *fromv = fromi->portion(ff, 1.); //fromv->setInitial(ret.finalPoint()); ret.append(*fromv); delete fromv; } - if(from > to) { + if(from >= to) { const_iterator ender = end(); if(ender->initialPoint() == ender->finalPoint()) ender++; ret.insert(ret.end(), ++fromi, ender); |
