From bb8ee4b95038d868808d3e3d666c7110f1ed99f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 14 Aug 2003 14:22:27 +0000 Subject: [PATCH] and here git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7547 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index 6cae7c85fa..20975a5146 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -489,9 +489,9 @@ void RowPainter::paintChangeBar() if (!pit_->isChanged(start, end)) return; - int const height = (boost::next(row_) != text_.rows().end() - ? row_->height() + boost::next(row_)->top_of_text() - : row_->baseline()); + int const height = (row_ == text_.lastRow()) + ? row_->baseline() + : row_->height() + boost::next(row_)->top_of_text(); pain_.fillRectangle(4, yo_, 5, height, LColor::changebar); } @@ -677,7 +677,7 @@ void RowPainter::paintFirst() y_top += paintAppendixStart(yo_ + y_top + 2 * defaultRowHeight()); // the top margin - if (row_ == text_.rows().begin() && !text_.isInInset()) + if (row_ == text_.firstRow() && !text_.isInInset()) y_top += PAPER_MARGIN; // draw a top pagebreak @@ -822,7 +822,7 @@ void RowPainter::paintLast() int y_bottom = row_->height() - 1; // the bottom margin - if (boost::next(row_) == text_.rows().end() && !text_.isInInset()) + if (row_ == text_.lastRow() && !text_.isInInset()) y_bottom -= PAPER_MARGIN; int const ww = bv_.workWidth(); -- 2.39.2