From d2c5629b9ddf0f9e6ee7b9eb513791f015555f3a Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 8 Apr 2013 15:07:53 +0000 Subject: [PATCH] enable "indent spouse" option to /not/ indent a spouse svn: r21925 --- gramps/plugins/drawreport/descendtree.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/drawreport/descendtree.py b/gramps/plugins/drawreport/descendtree.py index 91616574a..283ee9468 100644 --- a/gramps/plugins/drawreport/descendtree.py +++ b/gramps/plugins/drawreport/descendtree.py @@ -378,6 +378,7 @@ class RecurseDown: self.inlc_marr = gui.get_val("inc_marr") if not self.max_spouses: self.inlc_marr = False + self.spouse_indent = gui.get_val('ind_spouse') #is the option even available? self.bold_direct = gui.get_val('bolddirect') @@ -431,7 +432,10 @@ class RecurseDown: if box.level[1] == 0: self.__last_direct[level] = box - box.x_cm = self.canvas.report_opts.spouse_offset * box.level[1] + if self.spouse_indent: + box.x_cm = self.canvas.report_opts.spouse_offset * box.level[1] + else: + box.x_cm = 0.0 self.canvas.set_box_height_width(box)