]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
fix compilation on F13 and binutils/gold by rewriting specialized X11 code
[lyx.git] / src / Paragraph.cpp
index af6158881dc8ed3287b757c048f2da441ec7f54e..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,6 +3163,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;