From: André Pönitz Date: Mon, 8 Apr 2002 09:37:27 +0000 (+0000) Subject: fix crash X-Git-Tag: 1.6.10~19463 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cbfd5fd8df811c297054574f093b415d10b7d562;p=features.git fix crash git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3943 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index cb32686d4d..b6663b9378 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -699,6 +699,10 @@ bool MathGridInset::idxEnd(idx_type & idx, pos_type & pos) const bool MathGridInset::idxDelete(idx_type & idx) { + // nothing to do if we have just one row + if (nrows() == 1) + return false; + // nothing to do if we are in the middle of the last row of the inset if (idx + ncols() > nargs()) return false;