From 8c4af875fb84b0502b19bc11b4bfdf29a23a74a0 Mon Sep 17 00:00:00 2001 From: "Craig J. Anderson" Date: Thu, 3 May 2012 14:08:02 +0000 Subject: [PATCH] fixed a crash when you add the descendant_chart to a book report. In the 'include' tab, you can select a 'family chart' option for the title which should not be there. When ran it will crash. svn: r19431 --- src/plugins/drawreport/DescendTree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/drawreport/DescendTree.py b/src/plugins/drawreport/DescendTree.py index 636dd9612..6d4157684 100644 --- a/src/plugins/drawreport/DescendTree.py +++ b/src/plugins/drawreport/DescendTree.py @@ -1632,7 +1632,7 @@ class DescendTreeOptions(MenuReportOptions): [0, _("Do not include a title") ], [1, _("Descendant Chart for [selected person(s)]") ], ] - if self.name != _RPT_NAME: + if self.name.split(",")[0] != _RPT_NAME: item_list.append( [2, _("Family Chart for [names of chosen family]") ] )