mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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