don't pre-cache next page if we are going to modify bbox

This commit is contained in:
Dobrica Pavlinusic
2012-03-08 00:11:30 +01:00
parent f62a12a629
commit fdca464b96

View File

@@ -406,8 +406,10 @@ function UniReader:goto(no)
if no < self.doc:getPages() then
if self.globalzoommode ~= self.ZOOM_BY_VALUE then
-- pre-cache next page
self:draworcache(no+1,self.globalzoommode,self.offset_x,self.offset_y,width,height,self.globalgamma,self.globalrotate)
if #self.bbox == 0 then
-- pre-cache next page, but if we will modify bbox don't!
self:draworcache(no+1,self.globalzoommode,self.offset_x,self.offset_y,width,height,self.globalgamma,self.globalrotate)
end
else
self:draworcache(no,self.globalzoom,self.offset_x,self.offset_y,width,height,self.globalgamma,self.globalrotate)
end