From 8c08a948e3c2d02a02583ecaff2a45e0f9cd39ad Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 30 Mar 2015 22:43:54 +0200 Subject: [PATCH] Ensure both words resulting from separating a compound word are checked (manisandro/gImageReader#16). --- src/TextEditChecker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TextEditChecker.cpp b/src/TextEditChecker.cpp index 2ca0495..4ce68a9 100644 --- a/src/TextEditChecker.cpp +++ b/src/TextEditChecker.cpp @@ -304,6 +304,7 @@ void TextEditChecker::slotCheckRange(int pos, int removed, int added) c.setPosition(pos); c.moveWordStart(); c.setPosition(pos + added, QTextCursor::KeepAnchor); + c.moveWordEnd(QTextCursor::KeepAnchor); c.setCharFormat(QTextCharFormat()); checkSpelling(c.anchor(), c.position()); c.endEditBlock();