From 36f70bed44a5a6806e999ee7914c51745907460a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 24 Oct 2010 07:25:14 +0000 Subject: [PATCH] #2644: Do not export individual events without primary role svn: r16032 --- src/plugins/export/ExportGedcom.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index daaae3a45..a91d5fb9f 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -556,6 +556,12 @@ class GedcomWriter(UpdateCallback): # if the event is a birth or death, skip it. if etype in (gen.lib.EventType.BIRTH, gen.lib.EventType.DEATH): continue + + role = int(event_ref.get_role()) + + # if the event role is not primary, skip the event. + if role != gen.lib.EventRoleType.PRIMARY: + continue val = libgedcom.personalConstantEvents.get(etype, "").strip()