Minor cleanup
svn: r8122
This commit is contained in:
parent
d5077d219a
commit
7d2522f3b6
@ -3840,10 +3840,10 @@ class GedcomParser(UpdateCallback):
|
|||||||
return line.data
|
return line.data
|
||||||
|
|
||||||
def add_default_source(self, obj):
|
def add_default_source(self, obj):
|
||||||
if self.use_def_src and len(self.obj.get_source_references()) == 0:
|
if self.use_def_src and len(obj.get_source_references()) == 0:
|
||||||
sref = RelLib.SourceRef()
|
sref = RelLib.SourceRef()
|
||||||
sref.set_reference_handle(self.def_src.handle)
|
sref.set_reference_handle(self.def_src.handle)
|
||||||
self.obj.add_source_reference(sref)
|
obj.add_source_reference(sref)
|
||||||
|
|
||||||
def person_event_name(event, person):
|
def person_event_name(event, person):
|
||||||
if event.get_type().is_custom():
|
if event.get_type().is_custom():
|
||||||
|
Loading…
Reference in New Issue
Block a user