summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathConversion.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-01-17 20:27:13 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2009-01-17 20:27:13 +0000
commitf6cba1ddd430dce62f029c66995bfe73c4790c2f (patch)
treef60253b708faeacbb61bd4c8041df51e831b3e52 /src/livarot/PathConversion.cpp
parentwork a bit on snapindicator: added switch statement for different types (diff)
downloadinkscape-f6cba1ddd430dce62f029c66995bfe73c4790c2f.tar.gz
inkscape-f6cba1ddd430dce62f029c66995bfe73c4790c2f.zip
fix bug !
(bzr r7141)
Diffstat (limited to 'src/livarot/PathConversion.cpp')
-rw-r--r--src/livarot/PathConversion.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/livarot/PathConversion.cpp b/src/livarot/PathConversion.cpp
index 29cacb657..16717e5bd 100644
--- a/src/livarot/PathConversion.cpp
+++ b/src/livarot/PathConversion.cpp
@@ -252,7 +252,9 @@ void Path::Convert(double treshhold)
descr_cmd[curP]->associated = descr_cmd[curP - 1]->associated;
}
}
- pts[descr_cmd[curP]->associated].closed = true;
+ if ( descr_cmd[curP]->associated > 0 ) {
+ pts[descr_cmd[curP]->associated].closed = true;
+ }
curP++;
break;
}
@@ -480,7 +482,9 @@ void Path::Convert(NRRectL *area, double treshhold)
descr_cmd[curP]->associated = descr_cmd[curP - 1]->associated;
}
}
- pts[descr_cmd[curP]->associated].closed = true;
+ if ( descr_cmd[curP]->associated > 0 ) {
+ pts[descr_cmd[curP]->associated].closed = true;
+ }
last_point_relation = 0;
curP++;
break;
@@ -756,7 +760,9 @@ void Path::ConvertEvenLines(double treshhold)
descr_cmd[curP]->associated = descr_cmd[curP - 1]->associated;
}
}
- pts[descr_cmd[curP]->associated].closed = true;
+ if ( descr_cmd[curP]->associated > 0 ) {
+ pts[descr_cmd[curP]->associated].closed = true;
+ }
curP++;
break;
}