From b6ba0b4b16fbd81a94c0cbec5d5e4261685ba3a2 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 11 Apr 2005 09:42:55 +0000 Subject: [PATCH] * src/PedView.py (load_canvas): Catch bug of not existing family svn: r4341 --- ChangeLog | 3 +++ src/PedView.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index dd2ff8136..a55aa4e9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2005-04-11 Martin Hawlisch + * src/PedView.py (load_canvas): Catch bug of not existing family + 2005-04-10 Alex Roitman * Release: Version 1.1.95 "When danger reared its ugly head, he bravely turned his tail and fled" released. diff --git a/src/PedView.py b/src/PedView.py index d74213364..66b918841 100644 --- a/src/PedView.py +++ b/src/PedView.py @@ -281,6 +281,8 @@ class PedigreeView: for family_handle in self.active_person.get_family_handle_list(): family = self.db.get_family_from_handle(family_handle) + if not family: + continue if len(family.get_child_handle_list()) > 0: button,arrow = self.make_arrow_button(gtk.ARROW_LEFT, self.on_show_child_menu)