]> git.lyx.org Git - features.git/blobdiff - src/RowPainter.cpp
three-stage drawing: add a nodraw stage
[features.git] / src / RowPainter.cpp
index 2d7e12c445e2bb8d22efe7af6f969459d1e93580..2dc76664a91f099ab075e656934f72cf47b4a916 100644 (file)
@@ -576,7 +576,7 @@ void RowPainter::paintText()
                        paintStringAndSel(e);
 
                        // Paint the spelling marks if enabled.
-                       if (lyxrc.spellcheck_continuously && pi_.do_spellcheck && pi_.pain.isDrawingEnabled())
+                       if (lyxrc.spellcheck_continuously && pi_.do_spellcheck && !pi_.pain.isNull())
                                paintMisspelledMark(e);
                        break;