From 10379456c690c9b30442ec294bc5728729815ecf Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 29 May 2011 14:07:58 +0000 Subject: [PATCH] Geography : bug when linking a lat,lon to a place. svn: r17614 --- src/plugins/lib/maps/geography.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/lib/maps/geography.py b/src/plugins/lib/maps/geography.py index cfe08ee6c..58f86077a 100644 --- a/src/plugins/lib/maps/geography.py +++ b/src/plugins/lib/maps/geography.py @@ -903,9 +903,11 @@ class GeoGraphyView(osmGpsMap, NavigationView): if place: loc = place.get_main_location() oldv = (loc.get_country(), loc.get_state(), loc.get_county()) if loc else None - PlaceSelection(self.uistate, self.dbstate, self.osm, - self.selection_layer, self.place_list, - lat, lon, self.__edit_place, oldv) + for m in self.place_list: + if m[0] == place.get_title(): + self.mark = m PlaceSelection(self.uistate, self.dbstate, self.osm, + self.selection_layer, self.place_list, + lat, lon, self.__edit_place, oldv) def __add_place(self, pcountry, pcounty, pstate, plat, plon): """