From b666f0acaca987e8d38a0b211cd22254d52d1463 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 13 May 2002 12:56:45 +0000 Subject: [PATCH] *** empty log message *** svn: r987 --- src/plugins/WriteGedcom.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/WriteGedcom.py b/src/plugins/WriteGedcom.py index 249e0b90e..27a8325f0 100644 --- a/src/plugins/WriteGedcom.py +++ b/src/plugins/WriteGedcom.py @@ -718,15 +718,12 @@ class GedcomWriter: for srcref in addr.getSourceRefList(): self.write_source_ref(3,srcref) - family = person.getMainParents() - if family != None and family in self.flist: - self.g.write("1 FAMC @%s@\n" % self.fid(family.getId())) - for family in person.getParentList(): - self.g.write("1 FAMC @%s@\n" % self.fid(family[0].getId())) - if self.adopt == ADOPT_PEDI: - if string.lower(family[1]) == "adopted": - self.g.write("2 PEDI Adopted\n") + if family in self.flist: + self.g.write("1 FAMC @%s@\n" % self.fid(family[0].getId())) + if self.adopt == ADOPT_PEDI: + if string.lower(family[1]) == "adopted": + self.g.write("2 PEDI Adopted\n") for family in person.getFamilyList(): if family != None and family in self.flist: @@ -948,3 +945,6 @@ class GedcomWriter: from Plugins import register_export register_export(writeData,_("Export to GEDCOM")) + + +