summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-08-09 18:35:52 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-08-09 18:35:52 (GMT)
commit32abd75af82bb668aea837930185f9aae4398a66 (patch)
tree41f78a85ffd9f9844fb9ff329556d3f0377b6403
parentea73532eb1ca715d57cc184dcc5fabda9adaab6e (diff)
Work on the correct placemark data instance
-rw-r--r--src/plugins/runner/osm/translators/OsmConverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/runner/osm/translators/OsmConverter.cpp b/src/plugins/runner/osm/translators/OsmConverter.cpp
index ff7c68a..1788b1e 100644
--- a/src/plugins/runner/osm/translators/OsmConverter.cpp
+++ b/src/plugins/runner/osm/translators/OsmConverter.cpp
@@ -66,7 +66,7 @@ void OsmConverter::read(const GeoDataDocument *document)
const GeoDataLinearRing &outerRing = polygon->outerBoundary();
const OsmPlacemarkData outerRingOsmData = osmData.memberReference( index );
foreach(const GeoDataCoordinates &coordinates, outerRing) {
- m_nodes << OsmConverter::Node(coordinates, osmData.nodeReference(coordinates));
+ m_nodes << OsmConverter::Node(coordinates, outerRingOsmData.nodeReference(coordinates));
}
m_ways << OsmConverter::Way(&outerRing, outerRingOsmData);
@@ -75,7 +75,7 @@ void OsmConverter::read(const GeoDataDocument *document)
++index;
const OsmPlacemarkData innerRingOsmData = osmData.memberReference( index );
foreach(const GeoDataCoordinates &coordinates, innerRing) {
- m_nodes << OsmConverter::Node(coordinates, osmData.nodeReference(coordinates));
+ m_nodes << OsmConverter::Node(coordinates, innerRingOsmData.nodeReference(coordinates));
}
m_ways << OsmConverter::Way(&innerRing, innerRingOsmData);
}