avoid infinite loop in DDR
svn: r12799
This commit is contained in:
parent
b80e5efa42
commit
4e9c0246f3
@ -237,6 +237,7 @@ class DetDescendantReport(Report):
|
|||||||
def write_path(self, person):
|
def write_path(self, person):
|
||||||
path = []
|
path = []
|
||||||
while True:
|
while True:
|
||||||
|
#person changes in the loop
|
||||||
family_handle = person.get_main_parents_family_handle()
|
family_handle = person.get_main_parents_family_handle()
|
||||||
if family_handle:
|
if family_handle:
|
||||||
family = self.database.get_family_from_handle(family_handle)
|
family = self.database.get_family_from_handle(family_handle)
|
||||||
@ -252,6 +253,8 @@ class DetDescendantReport(Report):
|
|||||||
path.append(person_name)
|
path.append(person_name)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
index = len(path)
|
index = len(path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user