Skip to content

Commit 66b8c5e

Browse files
author
Louis Fréneau
committed
Bug fix: wrong assertion within slice-based ppi attribution
1 parent 411ad8e commit 66b8c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/patchGeneration/slicingComputation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ inline bool isEndOfSubslice(const size_t& distanceBestCandidate, const Point2D&
459459
starting_point_dist = startingVector.x * startingVector.x + startingVector.y * startingVector.y;
460460
}
461461

462-
assert(starting_point_dist == 0); // starting point is current point (start of subslice) (already checked before)
462+
assert(starting_point_dist != 0); // starting point is current point (start of subslice) (already checked before)
463463

464464
// If the starting point is closer than the candidate point, there is no need to compute the angle, and this is the end of the subslice
465465
if (starting_point_dist < distanceBestCandidate) return true;

0 commit comments

Comments
 (0)