]> git.lyx.org Git - features.git/commitdiff
Fix continuous spell checking
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Aug 2015 11:54:35 +0000 (13:54 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Aug 2015 12:01:45 +0000 (14:01 +0200)
The extra check became useless after 4796e6b3, but its presence only
broke continuous spell checking after f65f3adb.

src/RowPainter.cpp

index 2a25482b34409d5179f9634cf54a0d970be5374c..f54cf2853bb6919e2e7893375d75edbdf600c2ec 100644 (file)
@@ -631,11 +631,9 @@ void RowPainter::paintText()
                case Row::VIRTUAL:
                        paintStringAndSel(e);
 
-                       // Paint the spelling mark if needed.
-                       if (lyxrc.spellcheck_continuously && pi_.do_spellcheck
-                               && par_.isMisspelled(e.pos)) {
+                       // Paint the spelling marks if enabled.
+                       if (lyxrc.spellcheck_continuously && pi_.do_spellcheck)
                                paintMisspelledMark(orig_x, e);
-                       }
                        break;
                case Row::INSET: {
                        // If outer row has changed, nested insets are repaint completely.