5442: Clear pedigree view when creating new database and the active person is not set

svn: r18668
This commit is contained in:
Nick Hall 2011-12-31 18:05:07 +00:00
parent 3b75def43f
commit 19828dfd12

View File

@ -1017,6 +1017,11 @@ class PedigreeView(NavigationView):
lst = [None] * (2**self.force_size)
self.find_tree(person, 0, 1, lst)
# Purge current table content
for child in self.table.get_children():
child.destroy()
self.table.resize(1, 1)
if person:
self.rebuild(self.table, pos, lst, self.force_size)
@ -1028,11 +1033,6 @@ class PedigreeView(NavigationView):
All display options process in this function.
"""
# Purge current table content
for child in table_widget.get_children():
child.destroy()
table_widget.resize(1, 1)
# Calculate maximum table size
xmax = 0
ymax = 0