fix strange crash when loading the database
svn: r6252
This commit is contained in:
parent
8c2a5221da
commit
e8f7b2ff8d
@ -577,7 +577,9 @@ class PedigreeView(PageView.PersonNavView):
|
||||
self.notebook.set_current_page(self.force_size-2)
|
||||
|
||||
def rebuild_trees(self,person_handle):
|
||||
person = self.dbstate.db.get_person_from_handle( 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:
|
||||
# ((each box of the pedigree has a node here),
|
||||
|
Loading…
Reference in New Issue
Block a user