From 19828dfd12eb857b758f3c8eb5c7cc8dbe7b1208 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 31 Dec 2011 18:05:07 +0000 Subject: [PATCH] 5442: Clear pedigree view when creating new database and the active person is not set svn: r18668 --- src/plugins/view/pedigreeview.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/view/pedigreeview.py b/src/plugins/view/pedigreeview.py index 5693a2015..8cc7f3dc6 100644 --- a/src/plugins/view/pedigreeview.py +++ b/src/plugins/view/pedigreeview.py @@ -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