CRe: reset call cache on rendering change (#7927)

This fixes some values sometimes not updated in footer.
This commit is contained in:
hius07
2021-07-05 11:03:14 +03:00
committed by GitHub
parent ed5a9294a4
commit 897622d4bb

View File

@@ -1010,6 +1010,7 @@ function ReaderRolling:updatePos()
logger.dbg("rendering hash changed:", self.rendering_hash, ">", new_rendering_hash)
self.rendering_hash = new_rendering_hash
-- A few things like page numbers may have changed
self.ui.document:resetCallCache() -- be really sure this cache is reset
self.ui.document:_readMetadata() -- get updated document height and nb of pages
if self.hide_nonlinear_flows then
self.ui.document:cacheFlows()