6589: no TOC entry for b.r. multi-page no-title ancestor/descendant trees
svn: r21820
This commit is contained in:
parent
262dae3374
commit
a88de7bf8a
@ -487,6 +487,10 @@ class Canvas(Page):
|
|||||||
return
|
return
|
||||||
#x_page_offsets[page] tells me the widths I can use
|
#x_page_offsets[page] tells me the widths I can use
|
||||||
if len(x_page_offsets) > 1:
|
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_list = self.title.text.split(" ")
|
||||||
title_font = self.__get_font(self.title)
|
title_font = self.__get_font(self.title)
|
||||||
#space_width = PT2CM(self.doc.string_width(title_font," "))
|
#space_width = PT2CM(self.doc.string_width(title_font," "))
|
||||||
@ -586,6 +590,8 @@ class BoxBase(object):
|
|||||||
self.width = 0.0
|
self.width = 0.0
|
||||||
self.height = 0.0
|
self.height = 0.0
|
||||||
self.line_to = None
|
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):
|
def scale(self, scale_amount):
|
||||||
""" Scale the amounts """
|
""" Scale the amounts """
|
||||||
@ -634,8 +640,6 @@ class TitleNoDisplay(BoxBase):
|
|||||||
BoxBase.__init__(self)
|
BoxBase.__init__(self)
|
||||||
self.doc = doc
|
self.doc = doc
|
||||||
self.boxstr = boxstr
|
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):
|
def set_box_height_width(self):
|
||||||
self.width = self.height = 0
|
self.width = self.height = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user