Commit 4a38ea15 authored by Bernhard Beschow's avatar Bernhard Beschow

use presetStyle() from own instance, not from global one

parent 61fb4511
......@@ -908,7 +908,7 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete
if (style->iconStyle().iconPath().isEmpty()) {
QList<GeoDataFeature::GeoDataVisualCategory> categories = visualCategories(osmData);
foreach(GeoDataFeature::GeoDataVisualCategory category, categories) {
const GeoDataStyle::ConstPtr categoryStyle = GeoDataFeature::presetStyle(category);
const GeoDataStyle::ConstPtr categoryStyle = presetStyle(category);
if (!categoryStyle->iconStyle().icon().isNull()) {
GeoDataStyle::Ptr newStyle(new GeoDataStyle(*style));
newStyle->setIconStyle(categoryStyle->iconStyle());
......
Markdown is supported
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