mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a77224a3e1
commit
cbfd5fd8df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user