From c7d4701f5baf1270ccdb301125fc54b90c6e31d3 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 16 Jul 2001 12:57:21 +0000 Subject: [PATCH] Fixed family relationships on GEDCOM import svn: r252 --- gramps/src/plugins/ReadGedcom.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/src/plugins/ReadGedcom.py b/gramps/src/plugins/ReadGedcom.py index be4bff39b..2e5152480 100644 --- a/gramps/src/plugins/ReadGedcom.py +++ b/gramps/src/plugins/ReadGedcom.py @@ -482,9 +482,10 @@ class GedcomParser: mrel,frel = self.parse_ftw_relations(2) child = self.db.findPerson(matches[2],self.pmap) self.family.addChild(child) - if type != "": - if child.getMainFamily() == self.family: - child.setMainFamily(None) + if (mrel == "Birth" or mrel == "") and \ + (frel == "Birth" or frel == "") : + child.setMainFamily(self.family) + else: child.addAltFamily(self.family,mrel,frel) elif matches[1] == "NCHI" or matches[1] == "RIN" or matches[1] == "SUBM": pass