summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjiban Bairagya <[email protected]>2015-09-11 04:28:53 +0530
committerSanjiban Bairagya <[email protected]>2015-09-11 04:28:53 +0530
commite93a82935719cd1955b245cbd717c46352511fe7 (patch)
tree3060b8bfa1000bd19c178d74a119d63f1e03c977
parent53deda3b17de5469ec7fd20c3e5bfa06f31b6d0f (diff)
Fix for graveyards not rendering
-rw-r--r--src/plugins/runner/osm/OsmParser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/runner/osm/OsmParser.cpp b/src/plugins/runner/osm/OsmParser.cpp
index 332174e..ab46a31 100644
--- a/src/plugins/runner/osm/OsmParser.cpp
+++ b/src/plugins/runner/osm/OsmParser.cpp
@@ -172,16 +172,19 @@ void OsmParser::calculateHighwayWidth(GeoDataPlacemark *placemark) const
void OsmParser::adjustGraveyardPattern(GeoDataPlacemark *placemark) const
{
OsmPlacemarkData const & data = placemark->osmData();
+ GeoDataPolyStyle polyStyle = placemark->style()->polyStyle();
if( data.containsTag("religion","jewish") ){
- GeoDataPolyStyle polyStyle = placemark->style()->polyStyle();
polyStyle.setTexturePath(MarbleDirs::path("bitmaps/osmcarto/patterns/grave_yard_jewish.png"));
} else if( data.containsTag("religion","christian") ){
- GeoDataPolyStyle polyStyle = placemark->style()->polyStyle();
polyStyle.setTexturePath(MarbleDirs::path("bitmaps/osmcarto/patterns/grave_yard_christian.png"));
} else if( data.containsTag("religion","INT-generic") ){
- GeoDataPolyStyle polyStyle = placemark->style()->polyStyle();
polyStyle.setTexturePath(MarbleDirs::path("bitmaps/osmcarto/patterns/grave_yard_generic.png"));
+ } else {
+ return;
}
+ GeoDataStyle* style = new GeoDataStyle(*placemark->style());
+ style->setPolyStyle(polyStyle);
+ placemark->setStyle(style);
}
bool OsmParser::isValidElement(const QString& tagName) const