This commit is contained in:
Kovid Goyal 2007-09-13 18:22:23 +00:00
parent a6cb28c8d6
commit cf09ac8b32

View File

@ -664,8 +664,8 @@ class TableOfContents(object):
raise LrsError, "TOC destination must be appended to a container with an objID"
for tl in self.tocEntries:
if tl.label == tocLabel:
return
if tl.label == tocLabel and tl.textBlock == textBlock:
return
self.tocEntries.append(TocLabel(tocLabel, textBlock))
textBlock.tocLabel = tocLabel