X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=ea8e07fae67ddf732c4f377f918455cf4a3e6a67;hb=8b7584846c4e1a9c87a004fab479722fee7e3013;hp=48dbdd7a69578ee98d6c09b26001e3d0a5843dfc;hpb=7d68833dc9dd3d8cecd8594b15b03f6d2ec9a036;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 48dbdd7a69..ea8e07fae6 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -2132,15 +2132,7 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co // Take this opportunity to spellcheck the row contents. if (row_has_changed && lyxrc.spellcheck_continuously) { - WordLangTuple wl; - // dummy variable, not used. - static docstring_list suggestions; - pos_type from = row.pos(); - pos_type to = row.endpos(); - while (from < row.endpos()) { - text_->getPar(pit).spellCheck(from, to, wl, suggestions, false); - from = to + 1; - } + text_->getPar(pit).spellCheck(); } // Don't paint the row if a full repaint has not been requested