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
This commit is contained in:
parent
f2c6833cfc
commit
8e34bc809b
@ -530,9 +530,8 @@ class GedcomWriter(UpdateCallback):
|
|||||||
"""
|
"""
|
||||||
for event_ref in person.get_event_ref_list():
|
for event_ref in person.get_event_ref_list():
|
||||||
event = self.dbase.get_event_from_handle(event_ref.ref)
|
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._process_person_event(event, event_ref)
|
||||||
self._dump_event_stats(event, event_ref)
|
|
||||||
self._adoption_records(person)
|
self._adoption_records(person)
|
||||||
|
|
||||||
def _process_person_event(self, event, event_ref):
|
def _process_person_event(self, event, event_ref):
|
||||||
@ -574,6 +573,7 @@ class GedcomWriter(UpdateCallback):
|
|||||||
descr = event.get_description()
|
descr = event.get_description()
|
||||||
if descr:
|
if descr:
|
||||||
self._writeln(2, 'NOTE', "Description: " + descr)
|
self._writeln(2, 'NOTE', "Description: " + descr)
|
||||||
|
self._dump_event_stats(event, event_ref)
|
||||||
|
|
||||||
def _adoption_records(self, person):
|
def _adoption_records(self, person):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user