]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
BufferView.cpp: typo
[lyx.git] / src / Paragraph.cpp
index af6158881dc8ed3287b757c048f2da441ec7f54e..c47718c3d5a8eedf9d14d8040b1d10769600465a 100644 (file)
@@ -3165,6 +3165,9 @@ bool Paragraph::spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl,
        if (!speller)
                return false;
 
+       if (!d->layout_->spellcheck || !inInset().allowSpellCheck())
+               return false;
+
        locateWord(from, to, WHOLE_WORD);
        if (from == to || from >= pos_type(d->text_.size()))
                return false;