v...@lyx.org schreef:
Author: vfr
Date: Thu Aug 20 00:43:52 2009
New Revision: 31154
URL: http://www.lyx.org/trac/changeset/31154
Log:
Fix the painting of the last character of a paragraph. That is either the
added/deleted paragraph breaks in change tracking or the to-be introduced
pilcrow marks.
Modified:
lyx-devel/trunk/src/TextMetrics.cpp
Modified: lyx-devel/trunk/src/TextMetrics.cpp
==============================================================================
--- lyx-devel/trunk/src/TextMetrics.cpp Wed Aug 19 23:51:01 2009 (r31153)
+++ lyx-devel/trunk/src/TextMetrics.cpp Thu Aug 20 00:43:52 2009 (r31154)
@@ -2153,11 +2153,16 @@
rp.paintAppendix();
rp.paintDepthBar();
rp.paintChangeBar();
- if (i == 0)
+ bool const is_rtl = text_->isRTL(text_->getPar(pit));
+ if (i == 0 && !is_rtl)
rp.paintFirst();
+ if (i == nrows - 1 && is_rtl)
+ rp.paintLast();
rp.paintText();
- if (i == nrows - 1)
+ if (i == nrows - 1 && !is_rtl)
rp.paintLast();
+ if (i == 0 && is_rtl)
+ rp.paintFirst();
y += row.descent();
// Restore full_repaint status.
pi.full_repaint = tmp;
For branch ?
Vincent