Skip to content
Snippets Groups Projects
Commit 7861835e authored by Ondrej Semmler's avatar Ondrej Semmler
Browse files

Fix infinite loop in traversing function.

parent 9df11dad
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ namespace {
// Recall that we are working with 2-pt lines
while ( !terminated )
{
last = pts[1];
last = (pts[0]!=last ? pts[0] : pts[1]);
numInserted++;
t = dir * static_cast<double>(numInserted);
sortedPoints.push_back(LoopPoint(t,last));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment