From: André Pönitz Date: Fri, 8 Feb 2002 18:19:16 +0000 (+0000) Subject: fix bug dicovered by Richard X-Git-Tag: 1.6.10~19882 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=27e96b13bf1ab09e6dbbec70080bd488287d73ff;p=features.git fix bug dicovered by Richard git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3513 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 2ef9940200..111523ae2b 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -571,8 +571,8 @@ void MathCursor::delLine() par()->asGridInset()->delRow(hullRow()); } - if (idx() > par()->nargs()) - idx() = par()->nargs(); + if (idx() >= par()->nargs()) + idx() = par()->nargs() - 1; if (pos() > size()) pos() = size();