Skip to content
Snippets Groups Projects
Commit ad6af295 authored by David E. DeMarle's avatar David E. DeMarle Committed by Kitware Robot
Browse files

Merge topic 'infiniteLoopFix'


7861835e Fix infinite loop in traversing function.

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3140
parents ffc47b2f 7861835e
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.
Finish editing this message first!
Please register or to comment