diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ee716c9e1..f81c81574 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,12 @@ 2003-07-10 Alex Roitman * src/GrampsCfg.py (GrampsPreferences.select): Conditional get_path(). * src/Plugins.py (PluginDialog.on_node_selected): Likewise. + * src/plugins/BookReport.py (BookReportDialog.__init__): Do not + initiale book to the empty book (was losing selected style info). + * src/plugins/FtmStyleDescendants.py (FtmDescendantReport.__init__): + Call setup() to obtain complete style information. + * src/plugins/IndivComplete.py (IndivComplete.__init__): Likewise. + * src/plugins/IndivSummary.py (IndivSummary.__init__): Likewise. 2003-07-10 Tim Waugh * src/Relationship.py: Fix '[...]teenth' relationship name typos. diff --git a/gramps2/src/plugins/BookReport.py b/gramps2/src/plugins/BookReport.py index 6b629315a..94f161827 100644 --- a/gramps2/src/plugins/BookReport.py +++ b/gramps2/src/plugins/BookReport.py @@ -823,11 +823,9 @@ class BookReportDialog(Report.ReportDialog): self.book = book self.database = database self.person = person - self.default_style = TextDoc.StyleSheet() + for item in self.book.get_item_list(): - name = item.get_name() - item = BookItem(name) style_file = item.get_style_file() make_default_style = item.get_make_default_style() make_default_style(self.default_style) diff --git a/gramps2/src/plugins/FtmStyleDescendants.py b/gramps2/src/plugins/FtmStyleDescendants.py index 63677a3e2..f97ace38e 100644 --- a/gramps2/src/plugins/FtmStyleDescendants.py +++ b/gramps2/src/plugins/FtmStyleDescendants.py @@ -60,7 +60,7 @@ class FtmDescendantReport(Report.Report): self.max_generations = max self.pgbrk = pgbrk self.doc = doc - #self.setup() + self.setup() self.newpage = newpage if output: self.standalone = 1 diff --git a/gramps2/src/plugins/IndivComplete.py b/gramps2/src/plugins/IndivComplete.py index a7ba4795f..9ebec7955 100644 --- a/gramps2/src/plugins/IndivComplete.py +++ b/gramps2/src/plugins/IndivComplete.py @@ -76,6 +76,7 @@ class IndivComplete(Report.Report): self.database = database self.person = person self.output = output + self.setup() self.newpage = newpage if output: self.standalone = 1 diff --git a/gramps2/src/plugins/IndivSummary.py b/gramps2/src/plugins/IndivSummary.py index f11a9236a..2e3438b60 100644 --- a/gramps2/src/plugins/IndivSummary.py +++ b/gramps2/src/plugins/IndivSummary.py @@ -76,6 +76,7 @@ class IndivSummary(Report.Report): self.database = database self.person = person self.output = output + self.setup() if output: self.standalone = 1 self.d.open(output)