From 518c95b0d4ba7e7b8276a67a137b1610e42cc4c5 Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 19 Apr 2013 21:18:48 +0400 Subject: [PATCH] Revert "Hackish but nicer" This reverts commit 751ed1e1bda06b43af86a361405fe3f72876a8ac. Too hackish --- main.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.ml b/main.ml index e8ff9f2..b5835a5 100644 --- a/main.ml +++ b/main.ml @@ -2036,8 +2036,7 @@ let docolumns = function | _ -> pdimno, pdim, pdims in - let x = ((state.winw - state.scrollw - w) / 2) - xoff in - let x = if state.x = 0 then x else max 0 x in + let x = max 0 (((state.winw - state.scrollw - w) / 2) - xoff) in let y = y + (if conf.presentation then (if pageno = 0 then calcips h else calcips ph + calcips h) -- 2.11.4.GIT