]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.C
activate row delete/insert for the 'cases' environment, too
[lyx.git] / src / mathed / math_cursor.C
index 2b4db8d14919dfa8cde2a501f40054ced87a509f..1cb978decbc0cca3aba45956a242b6ecbf88ed56 100644 (file)
@@ -917,10 +917,10 @@ bool MathCursor::selection() const
 }
 
 
-MathArrayInset * MathCursor::enclosingArray(MathCursor::idx_type & idx) const
+MathGridInset * MathCursor::enclosingGrid(MathCursor::idx_type & idx) const
 {
        for (int i = Cursor_.size() - 1; i >= 0; --i) {
-               MathArrayInset * p = (*Cursor_[i].par_)->asArrayInset();
+               MathGridInset * p = (*Cursor_[i].par_)->asGridInset();
                if (p) {
                        idx = Cursor_[i].idx_;
                        return p;
@@ -1126,7 +1126,7 @@ void MathCursor::readLine(MathArray & ar) const
 char MathCursor::valign() const
 {
        idx_type idx;
-       MathArrayInset * p = enclosingArray(idx);
+       MathGridInset * p = enclosingGrid(idx);
        return p ? p->valign() : '\0';
 }
 
@@ -1134,7 +1134,7 @@ char MathCursor::valign() const
 char MathCursor::halign() const
 {
        idx_type idx;
-       MathArrayInset * p = enclosingArray(idx);
+       MathGridInset * p = enclosingGrid(idx);
        return p ? p->halign(idx % p->ncols()) : '\0';
 }