From d03264425b98e7e31838984971de910a56b1ada1 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sun, 22 Aug 2004 16:33:31 +0000 Subject: [PATCH] (GedcomWriter.fid): Use GRAMPS ID not DB handle. svn: r3477 --- gramps2/ChangeLog | 1 + gramps2/src/WriteGedcom.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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())