Ref T384, get closest ATC stations online

This commit is contained in:
Klaus Basan
2018-10-04 17:18:08 +02:00
parent 4c159d8293
commit 7300a2af1f
7 changed files with 30 additions and 2 deletions

View File

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