From c7c32adb152ee98373fa69e6047d922dd9a85d0f Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Wed, 4 Feb 2009 20:58:48 +0000 Subject: [PATCH] Fix import of note markers. Bug #2568 svn: r11856 --- src/GrampsDbUtils/_ReadXML.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GrampsDbUtils/_ReadXML.py b/src/GrampsDbUtils/_ReadXML.py index 3afcd4728..c7ba6fdc2 100644 --- a/src/GrampsDbUtils/_ReadXML.py +++ b/src/GrampsDbUtils/_ReadXML.py @@ -1330,6 +1330,10 @@ class GrampsParser(UpdateCallback): self.info.add('merge-overwrite', NOTE_KEY, self.note) self.note.format = int(attrs.get('format', gen.lib.Note.FLOWED)) self.note.type.set_from_xml_str(attrs['type']) + if attrs.get('complete'): # this is only true for complete=1 + self.note.marker.set(gen.lib.MarkerType.COMPLETE) + else: + self.note.marker.set_from_xml_str(attrs.get("marker", '')) else: # GRAMPS LEGACY: old notes that were written inside other objects # We need to create a top-level note, it's type depends on