Commit 8a54f6df authored by Volker Krause's avatar Volker Krause
Browse files

Don't set empty location identifiers

parent 21c8e0bb
......@@ -47,7 +47,10 @@ Location EfaCompactParser::parseCompactSf(ScopedXmlStreamReader &&reader) const
if (sub.name() == QLatin1String("c")) {
parseCompactCoordinate(sub.readElementText(), loc);
} else if (sub.name() == QLatin1String("id")) {
loc.setIdentifier(m_locationIdentifierType, sub.readElementText());
const auto id = sub.readElementText();
if (!id.isEmpty()) {
loc.setIdentifier(m_locationIdentifierType, id);
}
} else if (sub.name() == QLatin1String("pc")) {
loc.setLocality(sub.readElementText());
}
......
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