mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
and here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7547 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
976af41516
commit
bb8ee4b950
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user