fix several local calls of Math.round

This commit is contained in:
chrox
2013-10-23 22:37:55 +08:00
parent 141d72ddbe
commit 4cfdce6105
9 changed files with 31 additions and 22 deletions

View File

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