Fix GEDCOM import for bad source title when sources precede references.

Fixes #11610
This commit is contained in:
prculley 2020-04-04 10:00:35 -05:00 committed by Paul Culley
parent 924d82a7c4
commit a2c6641774

View File

@ -7776,7 +7776,8 @@ class GedcomParser(UpdateCallback):
# have got deleted by Chack and repair because the record is empty. # have got deleted by Chack and repair because the record is empty.
# If we find the source record, the title is overwritten in # If we find the source record, the title is overwritten in
# __source_title. # __source_title.
src.set_title(line.data) if not src.title:
src.set_title(line.data)
self.dbase.commit_source(src, self.trans) self.dbase.commit_source(src, self.trans)
self.__parse_source_reference(citation, level, src.handle, state) self.__parse_source_reference(citation, level, src.handle, state)
citation.set_reference_handle(src.handle) citation.set_reference_handle(src.handle)