Skip to content

Commit

Permalink
bump crengine: minor fixes (ruby, a crash, non-linear flows) (#11863)
Browse files Browse the repository at this point in the history
Includes:
- html5.css: really ensure ruby centering
- getRenderedWidths(): fix possible crash with 0-width images
- Page splitting: ignore empty non-linear flows
- LvDocView header: allow overriding "page/total %"
CreDocument: add setPageInfoOverride() to allow tweaking
top status bar display of page number/count/% (to be
implemented in a later commit).
  • Loading branch information
poire-z committed May 20, 2024
1 parent 6c7e2a9 commit 40814bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base
5 changes: 5 additions & 0 deletions frontend/document/credocument.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,11 @@ function CreDocument:setBatteryState(state)
self._document:setBatteryState(state)
end

function CreDocument:setPageInfoOverride(pageinfo)
logger.dbg("CreDocument: set page info", pageinfo)
self._document:setPageInfoOverride(pageinfo)
end

function CreDocument:isXPointerInCurrentPage(xp)
logger.dbg("CreDocument: check xpointer in current page", xp)
return self._document:isXPointerInCurrentPage(xp)
Expand Down

0 comments on commit 40814bf

Please sign in to comment.