]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDecoration.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathDecoration.cpp
index d53efb0354765350ec4d4e09947f961ebd958d4e..7998373d22b733b5cbb3f76cc41e3207f128f8eb 100644 (file)
@@ -139,17 +139,10 @@ void InsetMathDecoration::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathDecoration::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);
        if (os.fragile() && protect())
                os << "\\protect";
        os << '\\' << key_->name << '{' << cell(0) << '}';
-       os.pendingBrace(brace);
 }