GuiWorkArea::adjustViewWithScrollBar(): Fix slder to minimum and maximum. The problem was that when QAbstractSlider::actionTriggered() is emitted the scrollbar value is not changed, only its sliderPosition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22706 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-29 09:37:02 +00:00
parent 091ff73403
commit 1db3eb2113

View File

@ -478,7 +478,7 @@ void GuiWorkArea::adjustViewWithScrollBar(int action)
else if (action == QAbstractSlider::SliderPageStepSub)
buffer_view_->scrollUp(viewport()->height());
else
buffer_view_->scrollDocView(verticalScrollBar()->value());
buffer_view_->scrollDocView(verticalScrollBar()->sliderPosition());
if (lyxrc.cursor_follows_scrollbar) {
buffer_view_->setCursorFromScrollbar();