From a84b8ca6bea87573e77d76aae9bbd25ccf8942f5 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 19 Dec 2007 08:41:16 +0000 Subject: [PATCH] Fix PageDown/Up scrolling. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22212 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 45b2102dd7..dcaabbefe3 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -450,12 +450,6 @@ void BufferView::updateScrollbar() int h = tm.parMetrics(d->anchor_ref_).height(); - // Normalize anchor/offset (MV): - while (d->offset_ref_ > h && d->anchor_ref_ < parsize) { - d->anchor_ref_++; - d->offset_ref_ -= h; - h = tm.parMetrics(d->anchor_ref_).height(); - } // Look at paragraph heights on-screen int sumh = 0; int nh = 0;