From 4a5353cbbfa3ff2b6f0399eceb356fbbdd4774d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 7 Mar 2002 17:48:28 +0000 Subject: [PATCH] allow deletion of a row of empty cells in an eqnarray even if we are in the last row (was some off-by-one error) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3697 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_gridinset.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 18bceae2b8..3a6b6a0ea1 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -607,8 +607,8 @@ void MathGridInset::idxDelete(idx_type & idx, bool & popit, bool & deleteit) popit = false; deleteit = false; - // nothing to do if we are in the last row of the inset - if (row(idx) + 1 == nrows()) + // nothing to do if we are in the middle of the last row of the inset + if (idx + ncols() > nargs()) return; // try to delete entire sequence of ncols() empty cells if possible -- 2.39.2