Fix anchor bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22432 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-08 14:55:11 +00:00
parent c4d85b3f1d
commit 8379c2b70f

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_ = offset + pm.ascent() + height_ / 2;
updateMetrics();
buffer_.changed();