]> git.lyx.org Git - lyx.git/commitdiff
Another fix for cursor movement up with big insets.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 22 Dec 2007 09:10:49 +0000 (09:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 22 Dec 2007 09:10:49 +0000 (09:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22252 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index d6dcbaa67baa82d76219f707fc754a49e4750448..04bc5091547f194f7a0a746477e6135bbcb0fbb6 100644 (file)
@@ -1673,7 +1673,7 @@ void BufferView::updateMetrics()
        int y1 = d->anchor_ypos_ - anchor_pm.ascent();
        // We are now just above the anchor paragraph.
        pit_type pit1 = d->anchor_pit_ - 1;
-       for (; pit1 >= 0 && y1 > 0; --pit1) {
+       for (; pit1 >= 0 && y1 >= 0; --pit1) {
                tm.redoParagraph(pit1);
                ParagraphMetrics & pm = tm.par_metrics_[pit1];
                y1 -= pm.descent();