Geography : bug when link to place if you don't choose a place.

svn: r17602
This commit is contained in:
Serge Noiraud 2011-05-28 07:35:49 +00:00
parent 33ebad33ab
commit a5d04fe010

View File

@ -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))