From 1a4d43dbbf89fc8101cdec8dff6798bcc2f5a0d8 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 16 Jun 2017 14:54:04 +0200 Subject: [PATCH] 10088: Geography: try to link a map position if we have an active place. --- gramps/plugins/view/geoperson.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gramps/plugins/view/geoperson.py b/gramps/plugins/view/geoperson.py index c9f4a8914..67f5fbae9 100644 --- a/gramps/plugins/view/geoperson.py +++ b/gramps/plugins/view/geoperson.py @@ -201,12 +201,7 @@ class GeoPerson(GeoGraphyView): Rebuild the tree with the given person handle as the root. """ active = self.get_active() - #if handle: - # self._createmap(handle) - #elif active: - # p1 = self.dbstate.db.get_person_from_handle(active) - # self._createmap(p1) - self._createmap() + self._createmap(None) self.uistate.modify_statusbar(self.dbstate) def build_tree(self): @@ -216,8 +211,7 @@ class GeoPerson(GeoGraphyView): information. """ active = self.get_active() - #self._createmap(active) - self._createmap() + self._createmap(None) self.uistate.modify_statusbar(self.dbstate) def animate(self, menu, marks, index, stepyear): @@ -288,10 +282,11 @@ class GeoPerson(GeoGraphyView): menu, marks, i, stepyear) return False - def _createmap(self): + def _createmap(self, active): """ Create all markers for each people's event in the database which has a lat/lon. + @param: active is mandatory but unused in this view. Fix : 10088 """ dbstate = self.dbstate self.cal = config.get('preferences.calendar-format-report')