author | nemo |
Mon, 06 Dec 2010 08:58:24 -0500 | |
changeset 4472 | 9cf7ec8fdb71 |
parent 4470 | d2b8d2fc51a9 (current diff) |
parent 4471 | 220d44cb8659 (diff) |
child 4473 | b6487d2c15ad |
--- a/tools/drawMapTest/drawmapscene.cpp Mon Dec 06 08:58:05 2010 -0500 +++ b/tools/drawMapTest/drawmapscene.cpp Mon Dec 06 08:58:24 2010 -0500 @@ -147,7 +147,9 @@ int i = 1; while(i < points.size()) { - if(sqr(prevPoint.x() - points[i].x()) + sqr(prevPoint.y() - points[i].y()) < 1000) + if( (i != points.size() - 1) + && (sqr(prevPoint.x() - points[i].x()) + sqr(prevPoint.y() - points[i].y()) < 1000) + ) points.removeAt(i); else {