]> git.lyx.org Git - features.git/commitdiff
Fix anchor bug.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 8 Jan 2008 14:55:11 +0000 (14:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 8 Jan 2008 14:55:11 +0000 (14:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22432 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

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