#2644: Do not export individual events without primary role

svn: r16031
This commit is contained in:
Jérôme Rapinat 2010-10-24 07:20:15 +00:00
parent 403bea5f2c
commit a8ab3b5f4e

View File

@ -618,6 +618,11 @@ class GedcomWriter(UpdateCallback):
continue continue
val = libgedcom.personalConstantEvents.get(etype, "").strip() val = libgedcom.personalConstantEvents.get(etype, "").strip()
role = int(event_ref.get_role())
if role != gen.lib.EventRoleType.PRIMARY:
continue
if val and val.strip(): if val and val.strip():
if val in NEEDS_PARAMETER: if val in NEEDS_PARAMETER: