Fix PageDown/Up scrolling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22212 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-19 08:41:16 +00:00
parent 65dc5e8337
commit a84b8ca6be

View File

@ -450,12 +450,6 @@ void BufferView::updateScrollbar()
int h = tm.parMetrics(d->anchor_ref_).height(); 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 // Look at paragraph heights on-screen
int sumh = 0; int sumh = 0;
int nh = 0; int nh = 0;