]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSqrt.cpp
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathSqrt.cpp
index 11304a9bd1800ea18d96c35fe7fe8aedca2e1583..ab63ac1e447ec4f984464c063bf45caf1e9c7d74 100644 (file)
@@ -80,15 +80,8 @@ void InsetMathSqrt::drawT(TextPainter & /*pain*/, int /*x*/, int /*y*/) const
 
 void InsetMathSqrt::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) << '}';
-       os.pendingBrace(brace);
 }