From: Abdelrazak Younes Date: Sat, 22 Dec 2007 09:10:49 +0000 (+0000) Subject: Another fix for cursor movement up with big insets. X-Git-Tag: 1.6.10~6848 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3b368687f96908204414cb6a582a8fba1eb7f7a2;p=lyx.git Another fix for cursor movement up with big insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22252 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index d6dcbaa67b..04bc509154 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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();