Fix wrap-around of spellchecker (#10383)

This commit is contained in:
Juergen Spitzmueller 2021-03-06 08:27:30 +01:00
parent 74ebb1de7f
commit 8c00556d57
2 changed files with 9 additions and 0 deletions

View File

@ -368,6 +368,13 @@ void SpellcheckerWidget::Private::forward()
if (isWrapAround(cursor())) {
hide();
}
// If we reached the end of the document
// and have not yet wrapped (which was
// checked above), continue from beginning
if (cursor().pit() == cursor().lastpit()
&& cursor().pos() == cursor().lastpos()
&& cursor().text()->isMainText())
continueFromBeginning();
}

View File

@ -101,6 +101,8 @@ What's new
- Fix Thesaurus usage with large text selection (#10528).
- Fix wrap-around of spellchecker (#10383).
* INTERNALS