aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/hunspellworker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtualkeyboard/hunspellworker.cpp')
-rw-r--r--src/virtualkeyboard/hunspellworker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/hunspellworker.cpp b/src/virtualkeyboard/hunspellworker.cpp
index 9a35f4fb..eeee7c7c 100644
--- a/src/virtualkeyboard/hunspellworker.cpp
+++ b/src/virtualkeyboard/hunspellworker.cpp
@@ -79,7 +79,7 @@ void HunspellBuildSuggestionsTask::run()
which may be suboptimal for the purpose, but gives some clue
how much the suggested word differs from the given word.
*/
- if (wordList->list.length() > 1 && (!spellCheck(word) || suggestCapitalization)) {
+ if (autoCorrect && wordList->list.length() > 1 && (!spellCheck(word) || suggestCapitalization)) {
if (lastWordCompletionIndex > firstWordCompletionIndex || levenshteinDistance(word, wordList->list.at(firstWordCompletionIndex)) < 3)
wordList->index = firstWordCompletionIndex;
}