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).
pull/2400/head
poire-z 8 years ago committed by Qingping Hou
parent adbe76c156
commit 2c01f3add9

@ -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)

Loading…
Cancel
Save