GEPS 023: Citations: GEDCOM import was not working if Preferences->General->'Add default source on import' was set.

svn: r18818
This commit is contained in:
Tim G L Lyons 2012-02-03 11:15:42 +00:00
parent 8105d88233
commit fc74ba6f6e

View File

@ -6286,7 +6286,7 @@ class GedcomParser(UpdateCallback):
""" """
Add the default source to the object. 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 = gen.lib.Citation()
citation.set_reference_handle(self.def_src.handle) citation.set_reference_handle(self.def_src.handle)
self.dbase.add_citation(citation, self.trans) self.dbase.add_citation(citation, self.trans)