From 3222a6e6a4bbb09e7c6ad423e5c6f300e535d27b Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Fri, 3 Mar 2006 20:40:27 +0000 Subject: [PATCH] Small tweak to get ObjectSelector working again. svn: r6058 --- src/EditFamily.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/EditFamily.py b/src/EditFamily.py index 0fd7d6de9..f9e3ee73d 100644 --- a/src/EditFamily.py +++ b/src/EditFamily.py @@ -430,10 +430,11 @@ class EditFamily(EditPrimary.EditPrimary): for person_handle in self.obj.get_child_handle_list(): person = self.db.get_person_from_handle(person_handle) event_ref = person.get_birth_ref() - event_handle = event_ref.ref - if event_handle: - event = self.db.get_event_from_handle(event_handle) - child_birth_years.append(event.get_date_object().get_year()) + if event_ref: + event_handle = event_ref.ref + if event_handle: + event = self.db.get_event_from_handle(event_handle) + child_birth_years.append(event.get_date_object().get_year()) if len(child_birth_years) > 0: filter_spec.set_birth_year(min(child_birth_years))