]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathCases.cpp
index 6f1444c3ad23808bb9728356007477998730c803..15f7c0e43cd03cbf8767610b89f1e88f561b0dea 100644 (file)
@@ -107,7 +107,7 @@ bool InsetMathCases::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 void InsetMathCases::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
        if (os.fragile())
                os << "\\protect";
        os << "\\begin{cases}\n";
@@ -115,7 +115,6 @@ void InsetMathCases::write(WriteStream & os) const
        if (os.fragile())
                os << "\\protect";
        os << "\\end{cases}";
-       os.pendingBrace(brace);
 }