fix strange crash when loading the database

svn: r6252
This commit is contained in:
Martin Hawlisch 2006-04-01 12:42:30 +00:00
parent 08f0192af4
commit 72e25670ec

View File

@ -577,6 +577,8 @@ class PedigreeView(PageView.PersonNavView):
self.notebook.set_current_page(self.force_size-2)
def rebuild_trees(self,person_handle):
person = None
if person_handle:
person = self.dbstate.db.get_person_from_handle( person_handle)
if self.tree_style == 1:
# format of the definition is: