Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KOSMIndoorMap
Commits
97824328
Commit
97824328
authored
Apr 26, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/map-quick/osmaddress.cpp
View file @
97824328
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment