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:
parent
8105d88233
commit
fc74ba6f6e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user