mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
091ff73403
commit
1db3eb2113
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user