Commit c68ad733 authored by Bernhard Beschow's avatar Bernhard Beschow

remove yellow icons

fixes regression introduced in 144ce021
parent c47ba0bf
...@@ -907,7 +907,7 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete ...@@ -907,7 +907,7 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete
const QString keyValue = QString("%1=%2").arg(iter.key()).arg(iter.value()); const QString keyValue = QString("%1=%2").arg(iter.key()).arg(iter.value());
const GeoDataFeature::GeoDataVisualCategory category = OsmPresetLibrary::osmVisualCategory(keyValue); const GeoDataFeature::GeoDataVisualCategory category = OsmPresetLibrary::osmVisualCategory(keyValue);
const GeoDataStyle::ConstPtr categoryStyle = presetStyle(category); const GeoDataStyle::ConstPtr categoryStyle = presetStyle(category);
if (!categoryStyle->iconStyle().icon().isNull()) { if (category != GeoDataFeature::None && !categoryStyle->iconStyle().icon().isNull()) {
GeoDataStyle::Ptr newStyle(new GeoDataStyle(*style)); GeoDataStyle::Ptr newStyle(new GeoDataStyle(*style));
newStyle->setIconStyle(categoryStyle->iconStyle()); newStyle->setIconStyle(categoryStyle->iconStyle());
style = newStyle; style = newStyle;
......
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