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 8c2a5221da
commit e8f7b2ff8d

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: