commit 8c00556d571dc449bf5d975d6388d1be8a17a7c4
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Mar 6 08:27:30 2021 +0100

    Fix wrap-around of spellchecker (#10383)
---
 src/frontends/qt4/GuiSpellchecker.cpp |    7 +++++++
 status.23x                            |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiSpellchecker.cpp 
b/src/frontends/qt4/GuiSpellchecker.cpp
index a24f612..d4990bb 100644
--- a/src/frontends/qt4/GuiSpellchecker.cpp
+++ b/src/frontends/qt4/GuiSpellchecker.cpp
@@ -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();
 }
 
 
diff --git a/status.23x b/status.23x
index 67a3f0d..8296a85 100644
--- a/status.23x
+++ b/status.23x
@@ -101,6 +101,8 @@ What's new
 
 - Fix Thesaurus usage with large text selection (#10528).
 
+- Fix wrap-around of spellchecker (#10383).
+
 
 * INTERNALS
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to