]> git.lyx.org Git - features.git/commit
Fix "scroll here" feature of scrollbar (#10311)
authorGuillaume Munch <gm@lyx.org>
Fri, 29 Jul 2016 20:27:13 +0000 (21:27 +0100)
committerGuillaume Munch <gm@lyx.org>
Fri, 26 Aug 2016 19:41:08 +0000 (20:41 +0100)
commit49ce94f636ba3d6513724fd7b00969cd39f596eb
tree064faad8a403ed7ae25078939afe81bf366458d1
parent8acc5b85c47d3229debf805438d82528db9f3131
Fix "scroll here" feature of scrollbar (#10311)

Prevent setRange() from causing a recursive call to scrollTo(). Reduces three
calls of scrollTo() to one call for all scrolling functions of the scroll bar
(e.g. clicking on the arrow, dragging, or clicking somewhere on the scrollbar).

(cherry picked from commit 4d7b912ca1890b5b0b3ed29568b7091a7e7baef0)
src/BufferView.cpp
src/frontends/qt4/GuiWorkArea.cpp