Fix Gedcom import for improper creation of error message note
The improper note could overwrite another note, due to overlapping GIDs.
This commit is contained in:
parent
5fe0a4df46
commit
4226bc9d45
@ -3058,6 +3058,8 @@ class GedcomParser(UpdateCallback):
|
||||
text = StyledText(message, [tag])
|
||||
new_note.set_styledtext(text)
|
||||
new_note.set_handle(create_id())
|
||||
gramps_id = self.nid_map[""]
|
||||
new_note.set_gramps_id(gramps_id)
|
||||
note_type = NoteType()
|
||||
note_type.set((NoteType.CUSTOM, _("GEDCOM import")))
|
||||
new_note.set_type(note_type)
|
||||
|
Loading…
Reference in New Issue
Block a user