]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathMacro.cpp
* corrected handling of validation of math macros. The macro instances
[features.git] / src / mathed / MathMacro.cpp
index 8197444dffedb737007d2939a5c9455ca86efdec..d84a64240209b97afdeb431f6d41288cfb49dc42 100644 (file)
@@ -517,6 +517,12 @@ void MathMacro::validate(LaTeXFeatures & features) const
 
        if (name() == "binom" || name() == "mathcircumflex")
                features.require(to_utf8(name()));
+       
+       // validate the cells and the definition
+       if (displayMode() == DISPLAY_NORMAL) {
+               definition_.validate(features);
+               InsetMathNest::validate(features);
+       }
 }