X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=d23c09d29bfacfe1ab6ef7533c3a8e24d79a3ede;hb=0a8ec32a3bbcefc5ce7d7772fec82b85ba58f2d1;hp=efa6d258422c4c2ac5b703583b7a6446d4fec14a;hpb=6ef17af2b77e101ff4be1430263b67c6762ef562;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index efa6d25842..d23c09d29b 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1891,8 +1891,7 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const // has row changed since last paint? bool row_has_changed = row.changed() - || bv_->hadHorizScrollOffset(text_, pit, row.pos()) - || bv_->needRepaint(text_, row); + || bv_->hadHorizScrollOffset(text_, pit, row.pos()); // Take this opportunity to spellcheck the row contents. if (row_has_changed && pi.do_spellcheck && lyxrc.spellcheck_continuously) {