]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathSplit.cpp
Implement the suggestion by Andre'
[features.git] / src / mathed / InsetMathSplit.cpp
index a574e172e826b9502ccaa06a8e8e0ee276a32746..4420e9e5b56fdffdb645bbca81357cee08ed91ed 100644 (file)
@@ -87,7 +87,7 @@ bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 void InsetMathSplit::write(WriteStream & ws) const
 {
-       bool brace = ensureMath(ws);
+       MathEnsurer ensurer(ws);
        if (ws.fragile())
                ws << "\\protect";
        ws << "\\begin{" << name_ << '}';
@@ -99,7 +99,6 @@ void InsetMathSplit::write(WriteStream & ws) const
        if (ws.fragile())
                ws << "\\protect";
        ws << "\\end{" << name_ << "}\n";
-       ws.pendingBrace(brace);
 }