diff --git a/GeoLib/Polyline.cpp b/GeoLib/Polyline.cpp index b2411ca0fe2672e97e51c7d34253a8b03803fb93..e11f865a70944657d5312fe04e024d8334eb7fb3 100644 --- a/GeoLib/Polyline.cpp +++ b/GeoLib/Polyline.cpp @@ -413,6 +413,6 @@ bool pointsAreIdentical(const std::vector<Point*> &pnt_vec, { if (i == j) return true; - return MathLib::checkDistance( *pnt_vec[i], *pnt_vec[j], prox ); + return MathLib::sqrDist(pnt_vec[i], pnt_vec[j]) < prox; } } // end namespace GeoLib