Geography : bug #6718 : The active place must have valid coordinates to set center and zoom.
svn: r22282
This commit is contained in:
parent
6d8d8a3b6b
commit
04e3543274
@ -264,6 +264,7 @@ class GeoPlaces(GeoGraphyView):
|
||||
self._create_one_place(place)
|
||||
if place_x:
|
||||
place = dbstate.db.get_place_from_handle(place_x)
|
||||
if ( place.get_latitude() != "" and place.get_longitude() != "" ):
|
||||
self.osm.set_center_and_zoom(float(place.get_latitude()),
|
||||
float(place.get_longitude()),
|
||||
int(config.get("geography.zoom")))
|
||||
|
Loading…
Reference in New Issue
Block a user