diff --git a/gramps/plugins/drawreport/ancestortree.py b/gramps/plugins/drawreport/ancestortree.py index 389f7efea..ae220c509 100644 --- a/gramps/plugins/drawreport/ancestortree.py +++ b/gramps/plugins/drawreport/ancestortree.py @@ -660,14 +660,14 @@ class AncestorTree(Report): database - the GRAMPS database instance options - instance of the Options class for this report user - a gen.user.User() instance - """ Report.__init__(self, database, options, user) self.options = options - self.database = database self._user = user + stdoptions.run_private_data_option(self, options.menu) + lang = options.menu.get_option_by_name('trans').get_value() self._locale = self.set_locale(lang) @@ -683,6 +683,8 @@ class AncestorTree(Report): indblank - Whether to include blank pages. compress - Whether to compress chart. + incl_private - Whether to include private data + We will 1. a canvas in its full one-page size 2. a page that we wish to print on @@ -927,6 +929,8 @@ class AncestorTreeOptions(MenuReportOptions): centerDisp.set_help(_("Which Display format to use the center person")) menu.add_option(category_name, "center_uses", centerDisp) + stdoptions.add_private_data_option(menu, category_name) + stdoptions.add_localization_option(menu, category_name) ##################