mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Update readerview.lua (#13169)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fix resetHighlightBoxesCache()
This commit is contained in:
@@ -1149,7 +1149,7 @@ function ReaderView:onSetViewMode(new_mode)
|
||||
end
|
||||
|
||||
function ReaderView:resetHighlightBoxesCache(items)
|
||||
if items == nil then
|
||||
if type(items) ~= "table" then
|
||||
self.highlight.page_boxes = {}
|
||||
else
|
||||
for _, item in ipairs(items) do
|
||||
|
||||
Reference in New Issue
Block a user