]> git.lyx.org Git - features.git/commitdiff
Do not recenter screen on spelling-continuously
authorScott Kostyshak <skostysh@lyx.org>
Sun, 30 Oct 2016 23:38:28 +0000 (19:38 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 3 Nov 2016 01:34:01 +0000 (21:34 -0400)
If a user is scrolling and then toggles spellcheck, LyX used to
recenter the screen around the cursor. Now LyX does not recenter.

src/frontends/qt4/GuiView.cpp

index 42ee532ec5dbd07f457e596d3a826311c4ac14c8..fb57c2e526a6a8f3ff118bbca50b629a7f72086d 100644 (file)
@@ -4072,7 +4072,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
 
                case LFUN_SPELLING_CONTINUOUSLY:
                        lyxrc.spellcheck_continuously = !lyxrc.spellcheck_continuously;
-                       dr.screenUpdate(Update::Force | Update::FitCursor);
+                       dr.screenUpdate(Update::Force);
                        break;
 
                default: