Commit 2c8f7e90 authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

no need to compute category twice

parent 21e3f103
......@@ -584,7 +584,7 @@ GeoDataFeature::GeoDataVisualCategory OsmPresetLibrary::determineVisualCategory(
QString const keyValue = QString("%1=%2").arg(iter.key()).arg(iter.value());
GeoDataFeature::GeoDataVisualCategory category = osmVisualCategory(keyValue);
if (category != GeoDataFeature::None) {
return osmVisualCategory(keyValue);
return category;
}
}
......
Supports Markdown
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