From: Stephan Witt Date: Sat, 31 Dec 2011 11:33:46 +0000 (+0000) Subject: #7969 verify cursor position when spell check is done X-Git-Tag: 2.1.0beta1~2164 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=70d4c1d774326eb42a4e5f8594b0ae11192b198d;p=features.git #7969 verify cursor position when spell check is done git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40550 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index c92f1cc90e..2eb5fb2183 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -284,6 +284,8 @@ void SpellcheckerWidget::Private::hide() const // restore cursor position bvcur.setCursor(start_); bvcur.clearSelection(); + // spell checker may have started at (invalid) empty paragraph at end + bvcur.fixIfBroken(); bv->processUpdateFlags(Update::Force | Update::FitCursor); } }