From c29189e0cc765c2c67e7f390be491f2ba8c949f0 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 11 Jul 2003 11:15:40 +0000 Subject: [PATCH] 2003-07-11 Tim Waugh * src/plugins/SimpleBookTitle.py: Define self.style_name before calling Report.BareReportDialog.__init__(). svn: r1863 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/SimpleBookTitle.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a937a1629..4d857e117 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2003-07-11 Tim Waugh + * src/plugins/SimpleBookTitle.py: Define self.style_name before + calling Report.BareReportDialog.__init__(). + 2003-07-10 Alex Roitman * src/GrampsCfg.py (GrampsPreferences.select): Conditional get_path(). * src/Plugins.py (PluginDialog.on_node_selected): Likewise. diff --git a/gramps2/src/plugins/SimpleBookTitle.py b/gramps2/src/plugins/SimpleBookTitle.py index 199ada639..40ad26d8c 100644 --- a/gramps2/src/plugins/SimpleBookTitle.py +++ b/gramps2/src/plugins/SimpleBookTitle.py @@ -137,6 +137,8 @@ class SimpleBookTitleDialog(Report.BareReportDialog): self.person = self.db.getPerson(self.options[0]) else: self.person = person + + self.style_name = stl Report.BareReportDialog.__init__(self,database,self.person) if self.options[1]: @@ -155,7 +157,6 @@ class SimpleBookTitleDialog(Report.BareReportDialog): self.title_entry.set_text(self.title_string) self.copyright_entry.set_text(self.copyright_string) - self.style_name = stl self.new_person = None self.window.run()