From a60f43e53ab048809561c777aa1c1089bb51c965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 5 Nov 2007 14:31:33 +0000 Subject: [PATCH] * src/mathed/InsetMathGrid.cpp: - fix off-by-one-error in append-column (fix bug 4323/2). This is Martin's original fix (r21430) minus the buggy renaming. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21439 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 74cb45edb7..29333d3e3a 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1197,7 +1197,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd) row_type const r = cur.row(); col_type const c = cur.col(); for (int i = 0, n = extractInt(is); i < n; ++i) - addCol(cur.col()); + addCol(cur.col() + 1); cur.idx() = index(r, c); } else if (s == "delete-column") {