mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1921530 [Private bug](https://bugs.launchpad.net/calibre/+bug/1921530)
This commit is contained in:
parent
ad3aab9bdd
commit
4eda7a69fd
@ -1095,7 +1095,7 @@ class View:
|
|||||||
if not self.book or not self.book.manifest:
|
if not self.book or not self.book.manifest:
|
||||||
return
|
return
|
||||||
index, refnum = reference.split('.')
|
index, refnum = reference.split('.')
|
||||||
index, refnum = int(index), int(refnum)
|
index, refnum = int(index), (int(refnum) if refnum else 1)
|
||||||
chapter_name = self.book.manifest.spine[index]
|
chapter_name = self.book.manifest.spine[index]
|
||||||
if not chapter_name:
|
if not chapter_name:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user