From a8ab3b5f4e722de84d551c9ebc4d40a24c9f619c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 24 Oct 2010 07:20:15 +0000 Subject: [PATCH] #2644: Do not export individual events without primary role svn: r16031 --- src/plugins/export/ExportGedcom.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index 85369ad6d..64b896eac 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -618,6 +618,11 @@ class GedcomWriter(UpdateCallback): continue 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: