From 85300edd61f4b755f168cf3297938d91fd4b6181 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 30 Mar 2013 21:00:53 +0000 Subject: [PATCH] 6589: no TOC entry for b.r. multi-page no-title ancestor/descendant trees svn: r21819 --- gramps/plugins/lib/libtreebase.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/lib/libtreebase.py b/gramps/plugins/lib/libtreebase.py index cd6d9b28a..ce263ca2c 100644 --- a/gramps/plugins/lib/libtreebase.py +++ b/gramps/plugins/lib/libtreebase.py @@ -487,6 +487,10 @@ class Canvas(Page): return #x_page_offsets[page] tells me the widths I can use if len(x_page_offsets) > 1: + if self.title.mark_text and not self.title.text: + self.title.width = self.doc.get_usable_width() + self.__pages[0, 0].add_box(self.title) + return title_list = self.title.text.split(" ") title_font = self.__get_font(self.title) #space_width = PT2CM(self.doc.string_width(title_font," ")) @@ -586,6 +590,8 @@ class BoxBase(object): self.width = 0.0 self.height = 0.0 self.line_to = None + #if text in TOC needs to be different from text, set mark_text + self.mark_text = None def scale(self, scale_amount): """ Scale the amounts """ @@ -634,8 +640,6 @@ class TitleNoDisplay(BoxBase): BoxBase.__init__(self) self.doc = doc self.boxstr = boxstr - #if text in TOC needs to be different from text, set mark_text - self.mark_text = None def set_box_height_width(self): self.width = self.height = 0