This patch fixes bug 2655 (off by one error). It goes in trunk right now.
Jean-Marc, also OK for 1.4.2?
Georg
Log:
* src/mathed/math_gridinset.C
(doDispatch): fix off by one error when checking cur.idx() (bug 2655)
Index: src/mathed/math_gridinset.C
===================================================================
--- src/mathed/math_gridinset.C (Revision 14180)
+++ src/mathed/math_gridinset.C (Arbeitskopie)
@@ -1134,7 +1134,7 @@ void MathGridInset::doDispatch(LCursor &
else if (s == "delete-row") {
for (int i = 0, n = extractInt(is); i < n; ++i) {
delRow(cur.row());
- if (cur.idx() > nargs())
+ if (cur.idx() >= nargs())
cur.idx() -= ncols();
}
cur.pos() = 0; // trick, see below