* src/mathed/math_gridinset.C

(doDispatch): fix off by one error when checking cur.idx() (bug 2655)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14187 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-06-23 15:32:54 +00:00
parent af9295c7ea
commit 332a0fef95
2 changed files with 3 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
else if (s == "delete-row") { else if (s == "delete-row") {
for (int i = 0, n = extractInt(is); i < n; ++i) { for (int i = 0, n = extractInt(is); i < n; ++i) {
delRow(cur.row()); delRow(cur.row());
if (cur.idx() > nargs()) if (cur.idx() >= nargs())
cur.idx() -= ncols(); cur.idx() -= ncols();
} }
cur.pos() = 0; // trick, see below cur.pos() = 0; // trick, see below

View File

@ -86,6 +86,8 @@ What's new
- Fix undo in matrices. - Fix undo in matrices.
- Fix crash when deleting last row of an equation (bug 2655)
* User Interface: * User Interface:
- Much better performance when using natbib/jurabib citations (bug 2460). - Much better performance when using natbib/jurabib citations (bug 2460).