Commit 426b9844 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Fix assert logic

parent 73b95db9
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment