Fixed a crash when using the book report, adding the descendant_chart.

A 'Family chart' option is availible which is incorrect.  If selected,
will result in a fatal crash.


svn: r19430
This commit is contained in:
Craig J. Anderson 2012-05-03 14:00:53 +00:00
parent 64f7c86910
commit 9b9805c262

View File

@ -1631,7 +1631,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]") ]
)