0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name.
svn: r22296
This commit is contained in:
parent
7effc7980b
commit
ecd7637d27
@ -3518,7 +3518,10 @@ class GedcomParser(UpdateCallback):
|
||||
@param state: The current state
|
||||
@type state: CurrentState
|
||||
"""
|
||||
if line.data[0] == '@':
|
||||
if line.data == '':
|
||||
self.__add_msg(_("Empty Alias <NAME PERSONAL> ignored"), line, state)
|
||||
self.__skip_subordinate_levels(state.level+1, state)
|
||||
elif line.data[0] == '@':
|
||||
handle = self.__find_person_handle(self.pid_map[line.data])
|
||||
ref = gen.lib.PersonRef()
|
||||
ref.ref = handle
|
||||
|
Loading…
Reference in New Issue
Block a user