#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
This commit is contained in:
Stephan Witt 2011-12-31 11:33:46 +00:00
parent 6f0cc0cecd
commit 70d4c1d774

View 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);
}
}