summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-11 14:49:56 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-11 14:53:11 (GMT)
commitf5b876f2a8386a705c1748276d614a67457a4507 (patch)
tree8e8f4add3b1d2e700b025b3998d3ce8380486e04
parent5a455698469e9238e174bd2c77bad6681f4e9325 (diff)
Improve heuristic (do not exit too early)
-rw-r--r--tools/vectorosm-tilecreator/BaseClipper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/BaseClipper.cpp b/tools/vectorosm-tilecreator/BaseClipper.cpp
index 358a3d6..06235c9 100644
--- a/tools/vectorosm-tilecreator/BaseClipper.cpp
+++ b/tools/vectorosm-tilecreator/BaseClipper.cpp
@@ -506,7 +506,7 @@ void BaseClipper::clipPolyObject ( const QPolygonF & polygon,
}
}
clippedPolyObject << it->point();
- Q_ASSERT(clippedPolyObject.size() <= 2 * basePolygon.size());
+ Q_ASSERT(clippedPolyObject.size() <= 20 * basePolygon.size());
// // To avoid crashes because of infinite loop.
// // Needs to be investigated