This applies to 1.2.1cvs, I'll have something similar in my 1.3.0 tree which should get commited sometimes.
Jean-Marc, I think this is safe for 1.2.x. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Index: mathed/math_hullinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_hullinset.C,v retrieving revision 1.22.2.1 diff -u -p -r1.22.2.1 math_hullinset.C --- mathed/math_hullinset.C 31 May 2002 10:38:48 -0000 1.22.2.1 +++ mathed/math_hullinset.C 19 Aug 2002 05:56:03 -0000 @@ -442,6 +442,8 @@ void MathHullInset::appendRow() void MathHullInset::delRow(row_type row) { + if (nrows() <= 1) + return; MathGridInset::delRow(row); nonum_.erase(nonum_.begin() + row); label_.erase(label_.begin() + row); @@ -480,6 +482,8 @@ void MathHullInset::addCol(col_type col) void MathHullInset::delCol(col_type col) { + if (ncols() <= 1) + return; switch (getType()) { case LM_OT_ALIGNAT: case LM_OT_XALIGNAT: