mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix several local calls of Math.round
This commit is contained in:
@@ -3,6 +3,7 @@ local CacheItem = require("cacheitem")
|
||||
local TileCacheItem = require("document/tilecacheitem")
|
||||
local Geom = require("ui/geometry")
|
||||
local Configurable = require("ui/reader/configurable")
|
||||
local Math = require("optmath")
|
||||
local DEBUG = require("dbg")
|
||||
|
||||
--[[
|
||||
@@ -118,7 +119,7 @@ function Document:getPageBBox(pageno)
|
||||
--DEBUG("bbox from", pageno)
|
||||
return bbox
|
||||
else
|
||||
local oddEven = math.oddEven(pageno)
|
||||
local oddEven = Math.oddEven(pageno)
|
||||
bbox = self.bbox[oddEven] -- odd/even
|
||||
end
|
||||
if bbox ~= nil then -- last used up to this page
|
||||
|
||||
Reference in New Issue
Block a user