From a5d04fe010c51321709d64b6c53f04004a8a7cca Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sat, 28 May 2011 07:35:49 +0000 Subject: [PATCH] Geography : bug when link to place if you don't choose a place. svn: r17602 --- src/plugins/lib/maps/geography.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/lib/maps/geography.py b/src/plugins/lib/maps/geography.py index df6a91bc7..cfe08ee6c 100644 --- a/src/plugins/lib/maps/geography.py +++ b/src/plugins/lib/maps/geography.py @@ -903,9 +903,9 @@ 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) + 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): """ @@ -930,7 +930,6 @@ class GeoGraphyView(osmGpsMap, NavigationView): """ Edit the selected place at the marker position """ - _LOG.debug("edit_place : %s" % self.mark[9]) # need to add code here to edit the event. place = self.dbstate.db.get_place_from_gramps_id(self.mark[9]) place.set_latitude(str(plat))