Fix potential crash in book report.

svn: r12839
This commit is contained in:
Brian Matherly 2009-07-28 03:17:44 +00:00
parent 55a98c40ce
commit d2ad12a90a

View File

@ -799,7 +799,8 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
menu = item.option_class.menu
for optname in opt_dict:
menu_option = menu.get_option_by_name(optname)
menu_option.set_value(opt_dict[optname])
if menu_option:
menu_option.set_value(opt_dict[optname])
_initialize_options(item.option_class, self.dbstate)
item.set_style_name(saved_item.get_style_name())