summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-13 20:14:18 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-13 20:14:18 (GMT)
commitd9b3ee197f479316e3863fe2dc30bdb421051790 (patch)
treec2154cb9dce94cfeac1d3cf422e89665dd2b9fb1
parent660c528cb5683506107fb129ab958964b270539a (diff)
Simplify
-rw-r--r--tools/vectorosm-tilecreator/clipper/clipper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/clipper/clipper.cpp b/tools/vectorosm-tilecreator/clipper/clipper.cpp
index 59ff07b..2df031b 100644
--- a/tools/vectorosm-tilecreator/clipper/clipper.cpp
+++ b/tools/vectorosm-tilecreator/clipper/clipper.cpp
@@ -4633,7 +4633,8 @@ Marble::GeoDataCoordinates IntPoint::coordinates() const
using namespace Marble;
GeoDataCoordinates const coords = GeoDataCoordinates(double(X) / scale, double(Y) / scale);
if (m_coordinates) {
- bool const clipperKeptTheNode = EARTH_RADIUS * distanceSphere(coords, *m_coordinates) < 0.001;
+ bool const clipperKeptTheNode = qRound64(m_coordinates->longitude() * scale) == X &&
+ qRound64(m_coordinates->latitude() * scale) == Y;
if (clipperKeptTheNode) {
return *m_coordinates;
}