* src/plugins/FtmStyleAncestor.py (apply_filter):
Fixed generation condition. * src/plugins/FtmStyleDescendants.py (write_report): Do not print children if the current generation is the last. * src/plugins/DetDescendantReport.py (filter): Make it apply_filter, clean up and make shorter, modify numbering algorithm so that no gaps occur in people's indices. svn: r1649
This commit is contained in:
@@ -58,7 +58,7 @@ class FtmAncestorReport(Report.Report):
|
||||
self.sref_index = 1
|
||||
|
||||
def apply_filter(self,person,index,generation=1):
|
||||
if person == None or index >= (1 << 30):
|
||||
if person == None or generation > self.max_generations:
|
||||
return
|
||||
self.map[index] = (person,generation)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user