Fix: dog ears disappearance when switching fonts (#2394)
or switching orientation, or some other page layout setting.
Reverted commit a049edd, which should be done better (see #2395).
This commit is contained in:
1 parent
adbe76c156
commit
2c01f3add9
1 file changed
+7
-1
@@ -237,7 +237,13 @@ function ReaderBookmark:onShowBookmark()
|
||||
end
|
||||
|
||||
function ReaderBookmark:isBookmarkMatch(item, pn_or_xp)
|
||||
return item.page == pn_or_xp
|
||||
-- this is not correct, but previous commit temporarily
|
||||
-- reverted, see #2395 & #2394
|
||||
if self.ui.document.info.has_pages then
|
||||
return item.page == pn_or_xp
|
||||
else
|
||||
return self.ui.document:isXPointerInCurrentPage(item.page)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderBookmark:getDogearBookmarkIndex(pn_or_xp)
|
||||
|
||||
Reference in new issue
Block a user