From a636a5a7f2b94f8124b3efed844c91ab44ffb9f2 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Tue, 31 Oct 2006 20:07:26 +0000 Subject: [PATCH] * rowpainter.C: when checking whether the change bar has to be painted, also consider the imaginary end-of-par character git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15644 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index 4147a742bd..a35b3a4acb 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -368,7 +368,13 @@ void RowPainter::paintFromPos(pos_type & vpos) void RowPainter::paintChangeBar() { pos_type const start = row_.pos(); - pos_type const end = row_.endpos(); + pos_type end = row_.endpos(); + + if (par_.size() == end) { + // this is the last row of the paragraph; + // thus, we must also consider the imaginary end-of-par character + end++; + } if (start == end || !par_.isChanged(start, end)) return; -- 2.39.2