From dabcf41a34eb6ebb1a539f8369c8fec15f94db1c Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 16 Aug 2011 10:34:50 +0400 Subject: [PATCH] Avoid doing extra work --- main.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ml b/main.ml index e70f224..155816e 100644 --- a/main.ml +++ b/main.ml @@ -593,7 +593,7 @@ let pagevisible layout n = List.exists (fun l -> l.pageno = n) layout;; let preload () = let oktopreload = - if conf.preload + if conf.preload && not state.rendering then let memleft = conf.memlimit - state.memused in if memleft < 0 -- 2.11.4.GIT