From 7d0750ac5cc273691cfe9335b980353c78c1fe6f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 3 Jul 2003 02:56:34 +0000 Subject: [PATCH] * src/plugins/ReadGedcocm.py: Fix callback parameters svn: r1809 --- gramps2/src/plugins/ReadGedcom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gramps2/src/plugins/ReadGedcom.py b/gramps2/src/plugins/ReadGedcom.py index cfbd82e8e..dcb41f52a 100644 --- a/gramps2/src/plugins/ReadGedcom.py +++ b/gramps2/src/plugins/ReadGedcom.py @@ -176,7 +176,7 @@ def importData(database, filename, cb=None): statusWindow.destroy() cb(1) elif callback: - callback(1) + callback() #------------------------------------------------------------------------- # @@ -701,12 +701,12 @@ class GedcomParser: except: names = (matches[2],"","","","") if names[0]: - name.setFirstName(names[0]) + name.setFirstName(names[0].strip()) if names[2]: - name.setSurname(names[2]) - self.db.addSurname(names[2]) + name.setSurname(names[2].strip()) + self.db.addSurname(names[2].strip()) if names[4]: - name.setSuffix(names[4]) + name.setSuffix(names[4].strip()) if name_cnt == 0: self.person.setPrimaryName(name) else: