]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathDelim.cpp
index 9cf6414e294257b03909933ecd287209d6fc10cd..9a1ca07f864bc1dd2bdb6f43074475ab668581ae 100644 (file)
@@ -59,18 +59,9 @@ Inset * InsetMathDelim::clone() const
 
 void InsetMathDelim::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 << "\\left" << convertDelimToLatexName(left_) << cell(0)
           << "\\right" << convertDelimToLatexName(right_);
-
-       os.pendingBrace(brace);
 }