mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Amend change 07122f066b
- correct string access.
This commit is contained in:
parent
167dfbc92c
commit
6273c1f66d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user