From 8e34bc809b4bacc0e52d2bf992ce9c4ae70d69a5 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sun, 11 Aug 2013 13:32:34 +0000 Subject: [PATCH] 6909: Gedcom export adds birth place/date in death _remaining_events method did the _dump_event_stats indiscriminately, even if the event in question was skipped during processing as a birth/death one. Moving the call into the _process_person_event thus aligning the logic with _remaining_events's docstring. svn: r22851 --- gramps/plugins/export/exportgedcom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/export/exportgedcom.py b/gramps/plugins/export/exportgedcom.py index 2b80ac30b..9cb5918f8 100644 --- a/gramps/plugins/export/exportgedcom.py +++ b/gramps/plugins/export/exportgedcom.py @@ -530,9 +530,8 @@ class GedcomWriter(UpdateCallback): """ for event_ref in person.get_event_ref_list(): event = self.dbase.get_event_from_handle(event_ref.ref) - if event is None: continue + if not event: continue self._process_person_event(event, event_ref) - self._dump_event_stats(event, event_ref) self._adoption_records(person) def _process_person_event(self, event, event_ref): @@ -574,6 +573,7 @@ class GedcomWriter(UpdateCallback): descr = event.get_description() if descr: self._writeln(2, 'NOTE', "Description: " + descr) + self._dump_event_stats(event, event_ref) def _adoption_records(self, person): """