BufferView::showCursor(): better fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22438 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-08 15:49:03 +00:00
parent d5f47dc6f7
commit e40499d5df

View File

@ -745,7 +745,7 @@ void BufferView::showCursor()
else if (d->anchor_pit_ == max_pit)
d->anchor_ypos_ = height_ - offset - row_dim.descent();
else
d->anchor_ypos_ = offset + pm.ascent() + height_ / 2;
d->anchor_ypos_ = defaultRowHeight() * 2 - offset - row_dim.descent();
updateMetrics();
buffer_.changed();