4651: XML import of name with only display or sort format set fails

svn: r16634
This commit is contained in:
Michiel Nauta 2011-02-16 18:59:17 +00:00
parent 293cc55bd5
commit 0d99f3e5e4

View File

@ -1328,7 +1328,7 @@ class GrampsParser(UpdateCallback):
# check if these pointers need to be remapped
# and set the name attributes
if display_as in self.name_formats_map:
self.name.sort_as = self.name_formats_map[display_as]
self.name.display_as = self.name_formats_map[display_as]
else:
self.name_display_as = display_as
except KeyError: