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

pull/2/merge
Dobrica Pavlinusic 12 years ago
parent f62a12a629
commit fdca464b96

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

Loading…
Cancel
Save