From f6cba1ddd430dce62f029c66995bfe73c4790c2f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 17 Jan 2009 20:27:13 +0000 Subject: fix bug ! (bzr r7141) --- src/livarot/PathConversion.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/livarot/PathConversion.cpp') 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; } -- cgit v1.2.3