From 6325183dc3b787be0e14ef52336269e0b4d0405d Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 2 Oct 2012 23:22:06 +0200 Subject: [PATCH] Revert "don't preCache in two column mode" This reverts commit 4d187aad4ee49a20254048ca301119176b54039b. --- unireader.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/unireader.lua b/unireader.lua index 0521b8578..0cd17a951 100644 --- a/unireader.lua +++ b/unireader.lua @@ -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