]> git.lyx.org Git - features.git/commitdiff
* rowpainter.C: when checking whether the change
authorMichael Schmitt <michael.schmitt@teststep.org>
Tue, 31 Oct 2006 20:07:26 +0000 (20:07 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Tue, 31 Oct 2006 20:07:26 +0000 (20:07 +0000)
        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

index 4147a742bd5139bb488930252cae56d677ec95d1..a35b3a4acbab375cb07e87f719737114fc3034ad 100644 (file)
@@ -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;