* src/WriteGedcom.py (GedcomWriter.write_person): handle

empty event handles


svn: r3693
This commit is contained in:
Don Allingham 2004-10-30 16:36:20 +00:00
parent f7fb6f8eb4
commit 6fba169424
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-10-30 Don Allingham <dallingham@users.sourceforge.net>
* src/WriteGedcom.py (GedcomWriter.write_person): handle
empty event handles
2004-10-28 Don Allingham <dallingham@users.sourceforge.net> 2004-10-28 Don Allingham <dallingham@users.sourceforge.net>
* Makefile.am: added distuninstallcheck_listfiles * Makefile.am: added distuninstallcheck_listfiles
* doc/Makefile.am: Added CLEANFILES * doc/Makefile.am: Added CLEANFILES

View File

@ -811,6 +811,8 @@ class GedcomWriter:
self.write_ord("SLGC",person.get_lds_sealing(),1,const.lds_csealing) self.write_ord("SLGC",person.get_lds_sealing(),1,const.lds_csealing)
for event_handle in person.get_event_list(): for event_handle in person.get_event_list():
if event_handle:
continue
event = self.db.get_event_from_handle(event_handle) event = self.db.get_event_from_handle(event_handle)
if self.private and event.get_privacy(): if self.private and event.get_privacy():
continue continue