Minor cleanup
svn: r8122
This commit is contained in:
parent
d5077d219a
commit
7d2522f3b6
@ -1742,7 +1742,7 @@ class GedcomParser(UpdateCallback):
|
|||||||
|
|
||||||
sub_state = CurrentState()
|
sub_state = CurrentState()
|
||||||
sub_state.person = state.person
|
sub_state.person = state.person
|
||||||
sub_state.level = state.level+1
|
sub_state.level = state.level + 1
|
||||||
sub_state.ref = RelLib.PersonRef()
|
sub_state.ref = RelLib.PersonRef()
|
||||||
sub_state.ref.ref = handle
|
sub_state.ref.ref = handle
|
||||||
sub_state.ignore = False
|
sub_state.ignore = False
|
||||||
@ -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