2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/frontend/document
Aleksa Sarai 3ffb4c1692 kopt: add fallbacks for cases where kctx is not in cache
There were a handful of cases where if there was no cached kctx there
was no fallback and several KoptInterface methods would return nil,
causing issues in various parts of KOReader (this happened with the
migration to selected_text everywhere but it's unclear how that change
caused this regression).

In any case, from a correctness perspective it makes sense to have the
corresponding fallback paths to create a new kctx if we couldn't find a
cached one.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2021-10-23 15:49:54 +02:00
..
canvascontext.lua add hasSystemFonts device property (#7535) 2021-04-19 09:04:31 +02:00
credocument.lua credocument: update getTextFromXPointers wrapper to support selections 2021-10-23 15:49:54 +02:00
djvudocument.lua Kobo/Elipsa: More fine-grained control over the amount of online CPU 2021-09-25 02:47:06 +02:00
doccache.lua DocCache: Only compute cache size once 2021-09-12 00:30:16 +02:00
document.lua Kobo/Elipsa: More fine-grained control over the amount of online CPU 2021-09-25 02:47:06 +02:00
documentregistry.lua DocumentRegistry: Downgrade refcount warnings to debug logging. 2021-05-21 01:58:00 +02:00
koptinterface.lua kopt: add fallbacks for cases where kctx is not in cache 2021-10-23 15:49:54 +02:00
pdfdocument.lua Kobo/Elipsa: More fine-grained control over the amount of online CPU 2021-09-25 02:47:06 +02:00
picdocument.lua DocumentRegistry: Downgrade refcount warnings to debug logging. 2021-05-21 01:58:00 +02:00
tilecacheitem.lua PDF written highlights: fix boxes, trash cached tiles 2021-07-20 15:19:59 +02:00