From 4ede231ef1d995a364b2d16d3d038c4aa29a4544 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 26 Aug 2015 13:54:35 +0200 Subject: [PATCH] Fix continuous spell checking The extra check became useless after 4796e6b3, but its presence only broke continuous spell checking after f65f3adb. --- src/RowPainter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 2a25482b34..f54cf2853b 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -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. -- 2.39.2