CRE: use same marks in top and bottom progress bars

Feed to crengine the same ticks (build from the TOC
entries) that we use in the bottom status bar.
(crengine otherwise builds a tick for each DocFragment,
which most often is really different than what's seen
in the bottom bar.)
This commit is contained in:
poire-z
2020-06-05 10:09:44 +02:00
committed by Frans de Jonge
parent 3e71e4985e
commit 5536ce996a
4 changed files with 35 additions and 18 deletions

View File

@@ -767,6 +767,10 @@ function CreDocument:setViewDimen(dimen)
self._document:setViewDimen(dimen.w, dimen.h)
end
function CreDocument:setHeaderProgressMarks(pages, ticks)
self._document:setHeaderProgressMarks(pages, ticks)
end
function CreDocument:setHeaderFont(new_font)
if new_font then
logger.dbg("CreDocument: set header font", new_font)