]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.cpp
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathOverset.cpp
index 5d8edefef82ee45a64be6e585c7a38ae462ddf67..f443921d60211794c16420f1585786fb43593d44 100644 (file)
@@ -73,14 +73,8 @@ bool InsetMathOverset::idxLast(Cursor & cur) const
 
 void InsetMathOverset::write(WriteStream & os) const
 {
-       bool brace = os.pendingBrace();
-       os.pendingBrace(false);
-       if (os.latex() && os.textMode()) {
-               os << "\\ensuremath{";
-               os.textMode(false);
-       }
+       MathEnsurer ensurer(os);
        os << "\\overset{" << cell(0) << "}{" << cell(1) << '}';
-       os.pendingBrace(brace);
 }