Bug fix for hierarchical places

svn: r23445
This commit is contained in:
Nick Hall 2013-11-01 19:26:52 +00:00
parent d6ae8cffb4
commit 0fd2c1d74e

View File

@ -230,6 +230,7 @@ class PlaceSelection(ManagedWindow, OsmGps):
parent_list = place.get_placeref_list()
while len(parent_list) > 0:
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:
county = place.name
if parent_place is None: