mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
more rowpainter simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8116 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7e4b605961
commit
f897f21c40
@ -1020,19 +1020,8 @@ int paintText(BufferView & bv)
|
||||
void paintTextInset(BufferView & bv, LyXText & text, int xo, int baseline)
|
||||
{
|
||||
RowList::iterator rit = text.firstRow();
|
||||
RowList::iterator end = text.endRow();
|
||||
ParagraphList::iterator pit = text.ownerParagraphs().begin();
|
||||
|
||||
int y_offset = baseline - rit->ascent_of_text();
|
||||
int y = y_offset;
|
||||
while (rit != end && y + rit->height() <= 0) {
|
||||
y += rit->height();
|
||||
text.nextRow(pit, rit);
|
||||
}
|
||||
if (y_offset < 0)
|
||||
paintRows(bv, text, pit, rit, xo, y, 0);
|
||||
else
|
||||
paintRows(bv, text, pit, rit, xo, y_offset, 0);
|
||||
paintRows(bv, text, pit, rit, xo, baseline - rit->ascent_of_text(), 0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user