]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.cpp
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathFrac.cpp
index ac2d894e091c118f82564876dcce950ef007bca3..07e1c80502782e3058e36a97578423bd0f6b5a75 100644 (file)
@@ -265,6 +265,7 @@ void InsetMathFrac::drawT(TextPainter & /*pain*/, int /*x*/, int /*y*/) const
 
 void InsetMathFrac::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case ATOP:
                os << '{' << cell(0) << "\\atop " << cell(1) << '}';
@@ -535,6 +536,7 @@ bool InsetMathBinom::extraBraces() const
 
 void InsetMathBinom::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case BINOM:
                os << "\\binom{" << cell(0) << "}{" << cell(1) << '}';
@@ -560,10 +562,9 @@ void InsetMathBinom::normalize(NormalStream & os) const
 
 void InsetMathBinom::validate(LaTeXFeatures & features) const
 {
-       if (kind_ == BINOM) {
+       if (kind_ == BINOM)
                features.require("binom");
-               InsetMathNest::validate(features);
-       }
+       InsetMathNest::validate(features);
 }