]> git.lyx.org Git - features.git/blobdiff - src/RowPainter.cpp
The way this was done here is inconsistent with how it is done
[features.git] / src / RowPainter.cpp
index fbe35792a201b0462095de6cbbbfaa9f5dc94b3e..1b7c33dcd215f90bc081fef3dc67498480866b96 100644 (file)
@@ -330,7 +330,7 @@ void RowPainter::paintFromPos(pos_type & vpos, bool changed)
                                --cpos;
                        new_word = par_.isSameSpellRange(pos, cpos) ;
                }
-               if (!new_word)
+               if (!new_word && pi_.do_spellcheck)
                        paintMisspelledMark(orig_x, changed);
        }
 }