]> git.lyx.org Git - features.git/commitdiff
Fix PageDown/Up scrolling.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 19 Dec 2007 08:41:16 +0000 (08:41 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 19 Dec 2007 08:41:16 +0000 (08:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22212 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 45b2102dd7a547710ef5fb5fc1ea72c7f685d488..dcaabbefe33ab669853bb85daaf56dddac1e2f4a 100644 (file)
@@ -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;