]> git.lyx.org Git - features.git/commitdiff
#7969 verify cursor position when spell check is done
authorStephan Witt <switt@lyx.org>
Sat, 31 Dec 2011 11:33:46 +0000 (11:33 +0000)
committerStephan Witt <switt@lyx.org>
Sat, 31 Dec 2011 11:33:46 +0000 (11:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40550 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiSpellchecker.cpp

index c92f1cc90ec8b78a1df04589d3ff19ebf4236aa5..2eb5fb21839f72d5fb3318d6f490b9cab837bd86 100644 (file)
@@ -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);      
                }
        }