]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Fix bug #6997
[lyx.git] / src / TextMetrics.cpp
index 48dbdd7a69578ee98d6c09b26001e3d0a5843dfc..ea8e07fae67ddf732c4f377f918455cf4a3e6a67 100644 (file)
@@ -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