#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

@ -619,6 +619,11 @@ class GedcomWriter(UpdateCallback):
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 in NEEDS_PARAMETER:
if event.get_description().strip():