From de14b57b818b4a963176c414e2f23f510a175ea0 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 10 Jul 2005 05:15:09 +0000 Subject: [PATCH] * src/ReadXML.py (stop_ref): Properly read id-based witness reference created by old gramps. svn: r4915 --- gramps2/ChangeLog | 4 ++++ gramps2/src/ReadXML.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index cb2ca0ea8..3c9f58a94 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-09 Alex Roitman + * src/ReadXML.py (stop_ref): Properly read id-based witness + reference created by old gramps. + 2005-07-09 Julio Sanchez * src/docgen/OpenOfficeDoc.py: Make the output conform to the DTDs for OpenOffice.org XML diff --git a/gramps2/src/ReadXML.py b/gramps2/src/ReadXML.py index 41ee97573..b294cec58 100644 --- a/gramps2/src/ReadXML.py +++ b/gramps2/src/ReadXML.py @@ -1126,7 +1126,8 @@ class GrampsParser: self.name = None def stop_ref(self,tag): - self.witness = RelLib.Witness(RelLib.Event.ID,tag) + person = self.find_person_by_gramps_id(self.map_gid(tag)) + self.witness = RelLib.Witness(RelLib.Event.ID,person.get_handle()) def stop_place(self,tag): if self.placeobj == None: