]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBoldSymbol.cpp
Coding style
[lyx.git] / src / mathed / InsetMathBoldSymbol.cpp
index 3cca1180fb589ad636dbcb4c471c4d0ab6144ff8..730185f919de386c6e49bc7d9010e8ea9b65d5e1 100644 (file)
@@ -76,13 +76,7 @@ void InsetMathBoldSymbol::validate(LaTeXFeatures & features) const
 
 void InsetMathBoldSymbol::write(WriteStream & os) const
 {
-       bool brace = os.pendingBrace();
-       os.pendingBrace(false);
-       if (os.latex() && os.textMode()) {
-               os << "\\ensuremath{";
-               os.textMode(false);
-               brace = true;
-       }
+       MathEnsurer ensurer(os);
        switch (kind_) {
        case AMS_BOLD:
                os << "\\boldsymbol{" << cell(0) << "}";
@@ -94,7 +88,6 @@ void InsetMathBoldSymbol::write(WriteStream & os) const
                os << "\\hm{" << cell(0) << "}";
                break;
        }
-       os.pendingBrace(brace);
 }