]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRoot.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathRoot.cpp
index 006c0716ae2deda2dae315b9f5d621d236a10c91..95ad1a3e06b678070ba04732ebf85cb1a6e55912 100644 (file)
@@ -72,15 +72,8 @@ void InsetMathRoot::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathRoot::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);
        os << "\\sqrt[" << cell(0) << "]{" << cell(1) << '}';
-       os.pendingBrace(brace);
 }