Bug fix for hierarchical places
svn: r23445
This commit is contained in:
parent
d6ae8cffb4
commit
0fd2c1d74e
@ -230,6 +230,7 @@ class PlaceSelection(ManagedWindow, OsmGps):
|
|||||||
parent_list = place.get_placeref_list()
|
parent_list = place.get_placeref_list()
|
||||||
while len(parent_list) > 0:
|
while len(parent_list) > 0:
|
||||||
place = self.dbstate.db.get_place_from_handle(parent_list[0].ref)
|
place = self.dbstate.db.get_place_from_handle(parent_list[0].ref)
|
||||||
|
parent_list = place.get_placeref_list()
|
||||||
if int(place.get_type()) == PlaceType.COUNTY:
|
if int(place.get_type()) == PlaceType.COUNTY:
|
||||||
county = place.name
|
county = place.name
|
||||||
if parent_place is None:
|
if parent_place is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user