commit c73923c51901ef7d7b0a0a3e0a4a581671fbe0f1
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jul 20 23:25:17 2016 +0200
When painting only insets, paint also change and language marks
Fixes bug #8133.
---
src/RowPainter.cpp | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp
index 08ac66d..f0374c2 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();
}
}