summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-10 19:15:20 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-10 19:15:20 (GMT)
commit426b984468b6e5514a1180e75ad1d06a54cfb52f (patch)
tree1bd3eec83136c754645252e61e8ad412f0a3c07c
parent73b95db97f7abdfb05bca2aea6c089d3e4009963 (diff)
Fix assert logic
-rw-r--r--src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp b/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
index d162133..2ad1b91 100644
--- a/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
+++ b/src/lib/marble/geodata/graphicsitem/BuildingGeoPolygonGraphicsItem.cpp
@@ -208,8 +208,8 @@ QVector<BuildingGeoPolygonGraphicsItem::NamedEntry> BuildingGeoPolygonGraphicsIt
void BuildingGeoPolygonGraphicsItem::paint(GeoPainter* painter, const ViewportParams* viewport, const QString &layer)
{
if (layer.endsWith(QLatin1String("/frame"))) {
- Q_ASSERT(!m_cachedOutlinePolygons.isEmpty());
- Q_ASSERT(!m_cachedInnerPolygons.isEmpty());
+ Q_ASSERT(m_cachedOutlinePolygons.isEmpty());
+ Q_ASSERT(m_cachedInnerPolygons.isEmpty());
updatePolygons(viewport, m_cachedOutlinePolygons, m_cachedInnerPolygons, m_hasInnerBoundaries);
if (m_cachedOutlinePolygons.isEmpty()) {
return;