]> git.lyx.org Git - features.git/commitdiff
fix bug dicovered by Richard
authorAndré Pönitz <poenitz@gmx.net>
Fri, 8 Feb 2002 18:19:16 +0000 (18:19 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 8 Feb 2002 18:19:16 +0000 (18:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3513 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 2ef9940200a2f5a2e226e1fd42ffdf57795b7496..111523ae2bc608b79c7ba09fca5aaaf459e5bd03 100644 (file)
@@ -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();