Commit 97824328 authored by Volker Krause's avatar Volker Krause
Browse files

Fix removing the country prefix from the country subdivision code

parent d551633c
Pipeline #168722 failed with stage
in 1 minute and 35 seconds
......@@ -47,7 +47,7 @@ QString OSMAddress::state() const
}
const auto s = KCountrySubdivision::fromLocation(m_element.center().latF(), m_element.center().lonF());
return s.isValid() ? s.code().left(3) : QString();
return s.isValid() ? s.code().mid(3) : QString();
}
QString OSMAddress::country() const
......
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