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
This commit is contained in:
Craig J. Anderson 2012-05-03 14:08:02 +00:00
parent 04275cee6a
commit 8c4af875fb

View File

@ -1632,7 +1632,7 @@ class DescendTreeOptions(MenuReportOptions):
[0, _("Do not include a title") ], [0, _("Do not include a title") ],
[1, _("Descendant Chart for [selected person(s)]") ], [1, _("Descendant Chart for [selected person(s)]") ],
] ]
if self.name != _RPT_NAME: if self.name.split(",")[0] != _RPT_NAME:
item_list.append( item_list.append(
[2, _("Family Chart for [names of chosen family]") ] [2, _("Family Chart for [names of chosen family]") ]
) )