]> git.lyx.org Git - features.git/commitdiff
When painting only insets, paint also change and language marks
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Jul 2016 21:25:17 +0000 (23:25 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 20 Jul 2016 21:25:17 +0000 (23:25 +0200)
Fixes bug #8133.

src/RowPainter.cpp

index 08ac66d467c85bcfc7e72d979ef42f96fa8fa05a..f0374c2781c1ea416f8bd545f56b946613af7458 100644 (file)
@@ -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();
        }
 }