row display (fix #262).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3971
a592a061-630c-0410-9148-
cb99ea01b6c8
2002-04-11 Juergen Vigna <jug@sad.it>
+ * text2.C (setCursorFromCoordinates): set iy to the right value.
+
* buffer.C (parseSingleLyXformat2Token): reset font after read of
an old float_type as this was the case in the old code!
cur.pos(row->pos() + column);
cur.x(x);
cur.y(y + row->baseline());
- cur.iy(cur.y());
+ Inset * ins;
+ if (row->next() && cur.pos() &&
+ cur.par()->getChar(cur.pos()) == Paragraph::META_INSET &&
+ (ins=cur.par()->getInset(cur.pos())) &&
+ (ins->needFullRow() || ins->display()))
+ {
+ cur.iy(y + row->height() + row->next()->baseline());
+ } else {
+ cur.iy(cur.y());
+ }
cur.row(row);
cur.boundary(bound);
}