6568: graphic descendant tree report inserts a bogus title
svn: r21817
This commit is contained in:
parent
2e7e0d7666
commit
bc6c23bc65
@ -131,12 +131,15 @@ class FamilyBox(AncestorBoxBase):
|
||||
#------------------------------------------------------------------------
|
||||
class TitleN(TitleNoDisplay):
|
||||
"""No Title class for the report """
|
||||
|
||||
def __init__(self, doc):
|
||||
TitleNoDisplay.__init__(self, doc, "AC2-Title")
|
||||
|
||||
def calc_title(self, center):
|
||||
"""Calculate the title of the report"""
|
||||
self.text = _("Ancestor Graph")
|
||||
#we want no text, but need a text for the TOC in a book!
|
||||
self.mark_text = _("Ancestor Graph")
|
||||
self.text = ''
|
||||
|
||||
class TitleA(TitleBox):
|
||||
"""Title class for the report """
|
||||
|
@ -203,7 +203,7 @@ class DescendantTitleBase(TitleBox):
|
||||
return parents
|
||||
|
||||
class TitleNone(TitleNoDisplay):
|
||||
"""Family Chart Title class for the report """
|
||||
"""No Title class for the report """
|
||||
|
||||
def __init__(self, dbase, doc):
|
||||
TitleNoDisplay.__init__(self, doc, "CG2-Title")
|
||||
@ -211,7 +211,7 @@ class TitleNone(TitleNoDisplay):
|
||||
def calc_title(self, persons):
|
||||
"""Calculate the title of the report"""
|
||||
#we want no text, but need a text for the TOC in a book!
|
||||
self.mark_text = 'Descendant Graph'
|
||||
self.mark_text = _('Descendant Graph')
|
||||
self.text = ''
|
||||
|
||||
class TitleDPY(DescendantTitleBase):
|
||||
|
@ -36,12 +36,10 @@ from __future__ import division
|
||||
#------------------------------------------------------------------------
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().sgettext
|
||||
|
||||
from gramps.gen.plug.report import utils as ReportUtils
|
||||
|
||||
from gramps.gen.display.name import displayer as name_displayer
|
||||
|
||||
from gramps.plugins.lib.libsubstkeyword import SubstKeywords
|
||||
from gramps.gen.plug.docgen import (IndexMark, INDEX_TYPE_TOC)
|
||||
|
||||
PT2CM = ReportUtils.pt2cm
|
||||
|
||||
@ -645,7 +643,6 @@ class TitleNoDisplay(BoxBase):
|
||||
def display(self):
|
||||
""" display the title box. """
|
||||
#Set up the Table of Contents here
|
||||
from gramps.gen.plug.docgen import (IndexMark, INDEX_TYPE_TOC) # interim, here
|
||||
if self.mark_text is None:
|
||||
mark = IndexMark(self.text, INDEX_TYPE_TOC, 1)
|
||||
else:
|
||||
@ -687,7 +684,6 @@ class TitleBox(BoxBase):
|
||||
return
|
||||
|
||||
#Set up the Table of Contents here
|
||||
from gramps.gen.plug.docgen import (IndexMark, INDEX_TYPE_TOC) # interim, here
|
||||
mark = IndexMark(self.text, INDEX_TYPE_TOC, 1)
|
||||
|
||||
if self.text:
|
||||
|
Loading…
Reference in New Issue
Block a user