summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-04 16:51:30 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-04 17:12:14 (GMT)
commitcbc023b24f8f9ae11d3f87eb30c91e8ddcf4073c (patch)
tree81581d82d2b27c3425825417ca8bf3b25d168bf8
parent960680d0fe166cde05ae726effea7eccffb5c5a4 (diff)
Error out earlier (in debug mode, problem in question still exists)
-rw-r--r--tools/vectorosm-tilecreator/BaseClipper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vectorosm-tilecreator/BaseClipper.cpp b/tools/vectorosm-tilecreator/BaseClipper.cpp
index b2e7747..a46fddf 100644
--- a/tools/vectorosm-tilecreator/BaseClipper.cpp
+++ b/tools/vectorosm-tilecreator/BaseClipper.cpp
@@ -519,6 +519,7 @@ void BaseClipper::clipPolyObject ( const QPolygonF & polygon,
}
}
clippedPolyObject << it->point();
+ Q_ASSERT(clippedPolyObject.size() <= 2 * basePolygon.size());
// // To avoid crashes because of infinite loop.
// // Needs to be investigated