Revert "don't preCache in two column mode"

This reverts commit 4d187aad4e.
This commit is contained in:
Dobrica Pavlinusic
2012-10-02 23:22:06 +02:00
parent 3bd8c5c9f4
commit 6325183dc3

View File

@@ -1528,12 +1528,8 @@ function UniReader:goto(no, is_ignore_jump)
-- TODO: move the following to a more appropriate place
-- into the caching section
if no < self.doc:getPages() then
if self.bbox.enabled and #self.bbox > 0 then
Debug("no preCache -- using custom bbox")
elseif self.pan_by_page then
Debug("no preCache -- in two column mode")
else
Debug("preCache", no+1)
if #self.bbox == 0 or not self.bbox.enabled then
-- pre-cache next page, but if we will modify bbox don't!
self:drawOrCache(no+1, true)
end
end