fix crash

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-04-08 09:37:27 +00:00
parent a77224a3e1
commit cbfd5fd8df

View File

@ -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;