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

This fixes some values sometimes not updated in footer.
pull/7934/head
hius07 3 years ago committed by GitHub
parent ed5a9294a4
commit 897622d4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save