From 6bfd32d306e6c3af2d700e8c16cbab9af29e5b77 Mon Sep 17 00:00:00 2001 From: "Craig J. Anderson" Date: Wed, 6 Apr 2011 16:25:09 +0000 Subject: [PATCH] fixes error found on: http://www.gramps-project.org/bugs/view.php?id=4603#c18674 basically the children of a spouse of a spouse are not direct descendants. do not bold them. svn: r17062 --- src/plugins/drawreport/DescendTree.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/drawreport/DescendTree.py b/src/plugins/drawreport/DescendTree.py index 9ad549614..0dfcaa77e 100644 --- a/src/plugins/drawreport/DescendTree.py +++ b/src/plugins/drawreport/DescendTree.py @@ -505,6 +505,10 @@ class RecurseDown: spouse = None first = 1 + if s_level == 1: + tmp_bold = self.bold_now + self.bold_now = 0 + for family_handle in family_handles: if family_handle not in self.famalies_seen: self.famalies_seen.add(family_handle) @@ -550,6 +554,9 @@ class RecurseDown: #spouse_handle = ReportUtils.find_spouse(person,family) self.recurse(spouse_handle, x_level, s_level+1, spouse) + if s_level == 1: + self.bold_now = tmp_bold + def add_family(self, level, family, father2): """ Adds a family into the canvas.