summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-07-23 15:36:55 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-07-23 15:36:55 (GMT)
commit942cd301687de253911460c67a8eb55069c578d8 (patch)
treebc6a7018ca30fe9cf66ef833711c841359f087a3
parent5a221b82395a3f1447afbc78f601696c92e55467 (diff)
Hide unknown polygons
-rw-r--r--src/plugins/runner/osm/OsmRelation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/OsmRelation.cpp b/src/plugins/runner/osm/OsmRelation.cpp
index 6a2a88f..015c80b 100644
--- a/src/plugins/runner/osm/OsmRelation.cpp
+++ b/src/plugins/runner/osm/OsmRelation.cpp
@@ -107,7 +107,7 @@ void OsmRelation::create(GeoDataDocument *document, const OsmWays &ways, const O
placemark->setOsmData(m_osmData);
placemark->setVisualCategory(outerCategory);
placemark->setStyle( GeoDataStyle::Ptr() );
- placemark->setVisible(shouldRender);
+ placemark->setVisible(shouldRender && outerCategory != GeoDataFeature::None);
GeoDataPolygon* polygon = new GeoDataPolygon;
polygon->setOuterBoundary(outer[0]);