diff --git a/gramps/plugins/textreport/detdescendantreport.py b/gramps/plugins/textreport/detdescendantreport.py index b10650321..aaab0042a 100644 --- a/gramps/plugins/textreport/detdescendantreport.py +++ b/gramps/plugins/textreport/detdescendantreport.py @@ -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: