]> git.lyx.org Git - features.git/commitdiff
Add last missing inner-hull grid type environments.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 5 Jul 2010 17:30:03 +0000 (17:30 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 5 Jul 2010 17:30:03 +0000 (17:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34766 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.cpp

index bd66b0b5e2ba4b499c835df267f4a1678ffcf15e..3a8e4c2886262da3711196d3b423ee665fe5ba52 100644 (file)
@@ -248,9 +248,11 @@ void delEmptyLastRow(InsetMathGrid & grid)
  */
 bool innerHull(docstring const & name)
 {
+       // For [bB]matrix, [vV]matrix, and pmatrix we can check the suffix only
        return name == "array" || name == "cases" || name == "aligned"
                || name == "alignedat" || name == "gathered" || name == "split"
-               || name == "tabular";
+               || name == "subarray" || name == "tabular" || name == "matrix"
+               || name.substr(1) == "matrix";
 }