diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3c10e7488..699b5c796 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -2,6 +2,7 @@ * src/WriteGedcom.py (GedcomWriter.export_data): Write individuals out in GRAMPS ID order. + (GedcomWriter.fid): Use GRAMPS ID not DB handle. * src/ReadXML.py (GrampsParser.start_object): Set GRAMPS ID. diff --git a/gramps2/src/WriteGedcom.py b/gramps2/src/WriteGedcom.py index ce5f6b77b..7afc47f17 100644 --- a/gramps2/src/WriteGedcom.py +++ b/gramps2/src/WriteGedcom.py @@ -1253,7 +1253,8 @@ class GedcomWriter: self.write_long_text("NOTE",level+1,self.cnvtxt(ref.get_comments())) def fid(self,id): - return id + family = self.db.get_family_from_handle (id) + return family.get_gramps_id () def prefn(self,person): match = _get_int.search(person.get_gramps_id())