From 544727a311d2498036a831e74e3f6aa4444831bd Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 2 Aug 2001 23:26:04 +0000 Subject: [PATCH] Support multiple NAME tags per person svn: r283 --- src/plugins/ReadGedcom.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/ReadGedcom.py b/src/plugins/ReadGedcom.py index f86b8f01e..322f7201f 100644 --- a/src/plugins/ReadGedcom.py +++ b/src/plugins/ReadGedcom.py @@ -529,6 +529,7 @@ class GedcomParser: # #--------------------------------------------------------------------- def parse_individual(self): + name_cnt = 0 while 1: matches = self.get_next() @@ -547,7 +548,11 @@ class GedcomParser: name.setSurname(names[1]) if names[2]: name.setSuffix(names[2]) - self.person.setPrimaryName(name) + if name_cnt == 0: + self.person.setPrimaryName(name) + else: + self.person.addAlternateName(name) + name_cnt = name_cnt + 1 self.parse_name(name,2) elif matches[1] == "RIN" or matches[1] == "RFN": pass