summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-07-20 20:26:51 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-07-20 20:26:51 (GMT)
commit913caa81077781479f6eae0bcd70b00f79c2891b (patch)
treef0cbf4641798a381db181812d2b6786a8af71541
parent0fe7cd6cc082a524b9c59916ead14b3e16293f64 (diff)
Partly revert 43f3168 to keep memory usage low. Needs a proper fix.
-rw-r--r--src/plugins/runner/osm/OsmNode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/runner/osm/OsmNode.cpp b/src/plugins/runner/osm/OsmNode.cpp
index 6bbffda..a88277d 100644
--- a/src/plugins/runner/osm/OsmNode.cpp
+++ b/src/plugins/runner/osm/OsmNode.cpp
@@ -35,14 +35,14 @@ void OsmNode::create(GeoDataDocument *document) const
{
GeoDataFeature::GeoDataVisualCategory const category = OsmPresetLibrary::determineVisualCategory(m_osmData);
+ if (category == GeoDataFeature::None) {
+ return;
+ }
+
GeoDataPlacemark* placemark = new GeoDataPlacemark;
placemark->setOsmData(m_osmData);
placemark->setCoordinate(m_coordinates);
- if (category == GeoDataFeature::None) {
- placemark->setVisible(false);
- }
-
if ((category == GeoDataFeature::TransportCarShare || category == GeoDataFeature::MoneyAtm)
&& m_osmData.containsTagKey("operator")) {
placemark->setName(m_osmData.tagValue("operator"));