Merge pull request #100 from SNoiraud/bug3068

3068: Wrong reference number for "same person as" in detdescendantreport
This commit is contained in:
Doug Blank 2016-05-24 12:20:40 -04:00
commit 9a516b1058

View File

@ -198,7 +198,11 @@ class DetDescendantReport(Report):
def apply_henry_filter(self,person_handle, index, pid, cur_gen=1):
if (not person_handle) or (cur_gen > self.max_generations):
return
self.dnumber[person_handle] = pid
if person_handle in self.dnumber:
if self.dnumber[person_handle] > pid:
self.dnumber[person_handle] = pid
else:
self.dnumber[person_handle] = pid
self.map[index] = person_handle
if len(self.gen_keys) < cur_gen: