0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name.
svn: r22297
This commit is contained in:
parent
a6e318a53a
commit
45a5a85963
@ -3572,7 +3572,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 = PersonRef()
|
||||
ref.ref = handle
|
||||
|
Loading…
Reference in New Issue
Block a user