]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
BufferParams.cpp: fix #6714
[lyx.git] / src / Paragraph.cpp
index 4d51e2c69c3b4e39972a2bc0b55e74fbbaef069e..3d3e2582a4d84abde8b6294db1a580b09c65e619 100644 (file)
@@ -846,9 +846,7 @@ void Paragraph::Private::latexInset(
        }
 
        if (tmp) {
-               for (int j = 0; j < tmp; ++j)
-                       texrow.newline();
-
+               texrow.newlines(tmp);
                texrow.start(owner_->id(), i + 1);
                column = 0;
        } else {
@@ -3165,7 +3163,7 @@ bool Paragraph::spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl,
        if (!speller)
                return false;
 
-       if (!inInset().allowSpellCheck())
+       if (!d->layout_->spellcheck || !inInset().allowSpellCheck())
                return false;
 
        locateWord(from, to, WHOLE_WORD);