From fc74ba6f6ebc6e57913402d0695c2de33be9b1ba Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Fri, 3 Feb 2012 11:15:42 +0000 Subject: [PATCH] GEPS 023: Citations: GEDCOM import was not working if Preferences->General->'Add default source on import' was set. svn: r18818 --- src/plugins/lib/libgedcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index c79e692a6..cb544a8e9 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -6286,7 +6286,7 @@ class GedcomParser(UpdateCallback): """ Add the default source to the object. """ - if self.use_def_src and len(obj.get_source_references()) == 0: + if self.use_def_src and len(obj.get_citation_list()) == 0: citation = gen.lib.Citation() citation.set_reference_handle(self.def_src.handle) self.dbase.add_citation(citation, self.trans)