Fix, wrong assert

This commit is contained in:
Klaus Basan
2018-03-19 20:20:40 +01:00
parent 333a92ff63
commit 28b270a4cf

View File

@@ -122,7 +122,7 @@ namespace BlackMisc
{ {
return calculateEuclideanDistanceSquared(a, coordinate) < calculateEuclideanDistanceSquared(b, coordinate); return calculateEuclideanDistanceSquared(a, coordinate) < calculateEuclideanDistanceSquared(b, coordinate);
}); });
Q_ASSERT_X(closest.size() <= number, Q_FUNC_INFO, "size exceeded"); Q_ASSERT_X(closest.size() > number, Q_FUNC_INFO, "size exceeded");
return closest; return closest;
} }