commit 6273c1f66d9b920053119d59a8ecf07dcf02bcc1 Author: Stephan Witt <sw...@lyx.org> Date: Mon Mar 8 21:26:58 2021 +0100
Amend change 07122f066b - correct string access. --- src/Paragraph.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 9bfa3b8..f0e6741 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -4949,6 +4949,7 @@ void Paragraph::Private::markMisspelledWords( /// should not happen if speller supports range checks if (!wlen) continue; + WordLangTuple const candidate(word.substr(wstart, wlen), lang); wstart += first + numskipped; if (snext < wstart) { /// mark the range of correct spelling @@ -4958,7 +4959,6 @@ void Paragraph::Private::markMisspelledWords( } snext = wstart + wlen; // Check whether the candidate is in the document's local dict - WordLangTuple const candidate(word.substr(wstart, wlen), lang); SpellChecker::Result actresult = result; if (inset_owner_->buffer().params().spellignored(candidate)) actresult = SpellChecker::DOCUMENT_LEARNED_WORD; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs