Geography : bug when linking to a place.
svn: r17621
This commit is contained in:
parent
b6e341087c
commit
d3d2f0624c
@ -903,9 +903,12 @@ class GeoGraphyView(osmGpsMap, NavigationView):
|
|||||||
if place:
|
if place:
|
||||||
loc = place.get_main_location()
|
loc = place.get_main_location()
|
||||||
oldv = (loc.get_country(), loc.get_state(), loc.get_county()) if loc else None
|
oldv = (loc.get_country(), loc.get_state(), loc.get_county()) if loc else None
|
||||||
for m in self.place_list:
|
places_handle = self.dbstate.db.iter_place_handles()
|
||||||
if m[0] == place.get_title():
|
for place_hdl in places_handle:
|
||||||
self.mark = m
|
plce = self.dbstate.db.get_place_from_handle(place_hdl)
|
||||||
|
if plce.get_title() == place.get_title():
|
||||||
|
self.mark = [None,None,None,None,None,None,None,
|
||||||
|
None,None,plce.gramps_id,None,None]
|
||||||
PlaceSelection(self.uistate, self.dbstate, self.osm,
|
PlaceSelection(self.uistate, self.dbstate, self.osm,
|
||||||
self.selection_layer, self.place_list,
|
self.selection_layer, self.place_list,
|
||||||
lat, lon, self.__edit_place, oldv)
|
lat, lon, self.__edit_place, oldv)
|
||||||
|
@ -201,6 +201,8 @@ class GeoPlaces(GeoGraphyView):
|
|||||||
"""
|
"""
|
||||||
Create one entry for one place with a lat/lon.
|
Create one entry for one place with a lat/lon.
|
||||||
"""
|
"""
|
||||||
|
if place is None:
|
||||||
|
return
|
||||||
descr = place.get_title()
|
descr = place.get_title()
|
||||||
longitude = place.get_longitude()
|
longitude = place.get_longitude()
|
||||||
latitude = place.get_latitude()
|
latitude = place.get_latitude()
|
||||||
|
Loading…
Reference in New Issue
Block a user