From ce002bf7a69f3c9c2bbd25a956d6d8797fea4405 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 19 Apr 2008 01:13:44 +0000 Subject: [PATCH] 0002081: Fixed two bugs, error when asymmetric mother/father and fixed off-by-one spacing issue svn: r10585 --- src/plugins/DefaultGramplets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/DefaultGramplets.py b/src/plugins/DefaultGramplets.py index cfd28ea01..c6d10062c 100644 --- a/src/plugins/DefaultGramplets.py +++ b/src/plugins/DefaultGramplets.py @@ -482,9 +482,9 @@ class PedigreeGramplet(Gramplet): retval += " " if retval[-1] == ' ': if what == 'sf': - retval = retval[:-6] + " /" + retval = retval[:-6] + "/" elif what == 'sm': - retval = retval[:-6] + " \\" + retval = retval[:-6] + "\\" elif retval.endswith("| |"): retval = retval[:-6] + "+" return retval + "---" @@ -501,11 +501,14 @@ class PedigreeGramplet(Gramplet): if len(family_list) > 0: family = self.dbstate.db.get_family_from_handle(family_list[0]) father = family.get_father_handle() + mother = family.get_mother_handle() if father: self.process_person(father, generation + 1, "f") self.set_box(generation, 1) self.process_person(father, generation + 1, "sf") self.process_person(father, generation + 1, "m") + elif mother: + self.set_box(generation, 1) elif what[0] == "s": boxes = self.get_boxes(generation, what) if what[-1] == 'f':