]> git.lyx.org Git - features.git/commitdiff
BufferView::showCursor(): better fix.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 8 Jan 2008 15:49:03 +0000 (15:49 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 8 Jan 2008 15:49:03 +0000 (15:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22438 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 628e684728d50b49783ec2038249cf9b6e4cb200..5859d577727be0cfc4e7ebed001e9ea7dfd87d19 100644 (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();