fix import xml crash on patronymic

svn: r16041
This commit is contained in:
Benny Malengier 2010-10-24 19:11:38 +00:00
parent 4f52aa63e4
commit e5f62ee933

View File

@ -1357,8 +1357,8 @@ class GrampsParser(UpdateCallback):
def start_patronymic(self, attrs): def start_patronymic(self, attrs):
""" This is the element in version < 1.4.0 to do the patronymic""" """ This is the element in version < 1.4.0 to do the patronymic"""
self.surnamepat = gen.lib.Surname() self.surnamepat = gen.lib.Surname()
self.surnamepat.set_origintype(gen.lib.NameTypeOrigin( self.surnamepat.set_origintype(gen.lib.NameOriginType(
gen.lib.NameTypeOrigin.PATRONYMIC)) gen.lib.NameOriginType.PATRONYMIC))
def start_style(self, attrs): def start_style(self, attrs):
""" """