mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 10:44:16 +01:00
Fix #199
This commit is contained in:
parent
a6cb28c8d6
commit
cf09ac8b32
1 changed files with 2 additions and 2 deletions
|
|
@ -664,8 +664,8 @@ def addTocEntry(self, tocLabel, textBlock):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue