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

Fix resetHighlightBoxesCache()
This commit is contained in:
hius07
2025-01-30 20:04:52 +02:00
committed by GitHub
parent bc2c205cf8
commit 7dc75d313c

View File

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