summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-12-16 22:00:09 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2009-12-16 22:00:09 +0000
commit63b4a3ce75394e26f2e855ca264976f52d9db7ad (patch)
tree0d315a8116b13f98188771fdcae9139d328e42c1
parentdisable debug messages (diff)
downloadinkscape-63b4a3ce75394e26f2e855ca264976f52d9db7ad.tar.gz
inkscape-63b4a3ce75394e26f2e855ca264976f52d9db7ad.zip
2nd patch of bug 488862. Also committed upstream in 2geom.
(bzr r8893)
-rw-r--r--src/2geom/path-intersection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/path-intersection.cpp b/src/2geom/path-intersection.cpp
index b2d5ceabb..f883f8c63 100644
--- a/src/2geom/path-intersection.cpp
+++ b/src/2geom/path-intersection.cpp
@@ -118,7 +118,7 @@ bool path_direction(Path const &p) {
double x = p.initialPoint()[X];
Cmp res = cmp(p[0].finalPoint()[Y], y);
goto doh;
- for(unsigned i = 1; i <= p.size(); i++) {
+ for(unsigned i = 1; i < p.size(); i++) {
Cmp final_to_ray = cmp(p[i].finalPoint()[Y], y);
Cmp initial_to_ray = cmp(p[i].initialPoint()[Y], y);
// if y is included, these will have opposite values, giving order.
@@ -485,7 +485,7 @@ std::vector<double> path_mono_splits(Path const &p) {
if(p.empty()) return ret;
bool pdx=2, pdy=2; //Previous derivative direction
- for(unsigned i = 0; i <= p.size(); i++) {
+ for(unsigned i = 0; i < p.size(); i++) {
std::vector<double> spl = offset_doubles(curve_mono_splits(p[i]), i);
bool dx = p[i].initialPoint()[X] > (spl.empty()? p[i].finalPoint()[X] :
p.valueAt(spl.front(), X));