* configure.in, configure: Typo.

* src/plugins/FtmStyleAncestors.py (endnotes): Do not add
redundant references.
* src/plugins/FtmStyleDescendants.py (endnotes): Do not add
redundant references.
* src/plugins/DetAncestralReport.py (_make_default_style):
Remove unused table definition.
* src/plugins/DetDescendantReport.py (_make_default_style):
Remove unused table definition.


svn: r2950
This commit is contained in:
Alex Roitman
2004-03-02 03:43:51 +00:00
parent fe971218bd
commit 35fe331daf
7 changed files with 419 additions and 237 deletions

View File

@ -62,7 +62,7 @@ class FtmAncestorReport(Report.Report):
else:
self.standalone = 0
self.sref_map = {}
self.sref_index = 1
self.sref_index = 0
def apply_filter(self,person,index,generation=1):
if person == None or generation > self.max_generations:
@ -463,9 +463,18 @@ class FtmAncestorReport(Report.Report):
if not first:
msg.write(',')
first = 0
msg.write("%d" % self.sref_index)
self.sref_map[self.sref_index] = ref
self.sref_index += 1
ref_base = ref.get_base_id()
the_key = 0
for key in self.sref_map.keys():
if ref_base == self.sref_map[key].get_base_id():
the_key = key
break
if the_key:
msg.write("%d" % the_key)
else:
self.sref_index += 1
self.sref_map[self.sref_index] = ref
msg.write("%d" % self.sref_index)
msg.write('</super>')
str = msg.getvalue()
msg.close()