]> git.lyx.org Git - features.git/commitdiff
fix crash
authorAndré Pönitz <poenitz@gmx.net>
Mon, 8 Apr 2002 09:37:27 +0000 (09:37 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 8 Apr 2002 09:37:27 +0000 (09:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3943 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_gridinset.C

index cb32686d4db21069db6df6af13b1e8f237946b58..b6663b93782abd0884c9d075a3508a3b8c7c4f59 100644 (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;