Index: Source/core/editing/spellcheck/SpellChecker.cpp |
diff --git a/Source/core/editing/spellcheck/SpellChecker.cpp b/Source/core/editing/spellcheck/SpellChecker.cpp |
index 9ee443e7985f8a7f346875ed5763e6ebe0c27102..10aa296a26fe40d35e43bc933a038269fe0c9895 100644 |
--- a/Source/core/editing/spellcheck/SpellChecker.cpp |
+++ b/Source/core/editing/spellcheck/SpellChecker.cpp |
@@ -212,7 +212,7 @@ void SpellChecker::advanceToNextMisspelling(bool startBeforeSelection) |
// next word so we start checking at a word boundary. Going back by one char |
// and then forward by a word does the trick. |
if (startedWithSelection) { |
- VisiblePosition oneBeforeStart = previousPositionOf(VisiblePosition(spellingSearchStart)); |
+ VisiblePosition oneBeforeStart = previousPositionOf(createVisiblePosition(spellingSearchStart)); |
if (oneBeforeStart.isNotNull()) |
spellingSearchStart = endOfWord(oneBeforeStart).toParentAnchoredPosition(); |
// else we were already at the start of the editable node |