]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / InsetMathSplit.C
index 606191e1fd405affd6c91a261688b53728b873a2..8921136b69e1644bf8407d0a43f1acc46b15d839 100644 (file)
@@ -110,6 +110,8 @@ void InsetMathSplit::infoize(std::ostream & os) const
 
 void InsetMathSplit::validate(LaTeXFeatures & features) const
 {
-       features.require("amsmath");
-       InsetMathNest::validate(features);
+       if (name_ == "split" || name_ == "gathered" || name_ == "aligned" ||
+           name_ == "alignedat")
+               features.require("amsmath");
+       InsetMathGrid::validate(features);
 }