From 4226bc9d4500b4611178adf0426b8686486a4267 Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 21 Feb 2017 09:13:16 -0600 Subject: [PATCH] Fix Gedcom import for improper creation of error message note The improper note could overwrite another note, due to overlapping GIDs. --- gramps/plugins/lib/libgedcom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 4c05eee1e..6f5d5d798 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -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)