From: Jean-Marc Lasgouttes Date: Wed, 20 Jul 2016 21:25:17 +0000 (+0200) Subject: When painting only insets, paint also change and language marks X-Git-Tag: 2.3.0alpha1~1229 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c73923c51901ef7d7b0a0a3e0a4a581671fbe0f1;p=features.git When painting only insets, paint also change and language marks Fixes bug #8133. --- diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 08ac66d467..f0374c2781 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -550,8 +550,15 @@ void RowPainter::paintOnlyInsets() Row::const_iterator const & end = row_.end(); for ( ; cit != end ; ++cit) { Row::Element const & e = *cit; - if (e.type == Row::INSET) - paintInset(e); + if (e.type == Row::INSET) { + paintInset(e); + // The line that indicates word in a different language + paintForeignMark(e); + // change tracking (not for insets that handle it themselves) + if (!e.inset->canPaintChange(*pi_.base.bv)) + paintChange(e); + } + x_ += e.full_width(); } }