]> git.lyx.org Git - features.git/commitdiff
GuiWorkArea::adjustViewWithScrollBar(): Fix slder to minimum and maximum. The problem...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jan 2008 09:37:02 +0000 (09:37 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jan 2008 09:37:02 +0000 (09:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22706 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index b92bafa8dd8f36ab3d7ddaeb0b3ea8c89dfb6506..be62b106b81b85b07f526bdcf3495f8d855e4750 100644 (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();