]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathXYMatrix.cpp
Implement the suggestion by Andre'
[features.git] / src / mathed / InsetMathXYMatrix.cpp
index 4bd3b0e4e8ff69da5e228d9b404a76710be50179..79a5a76551049673f4284ee85ca50e173b1a98d6 100644 (file)
@@ -53,7 +53,7 @@ void InsetMathXYMatrix::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetMathXYMatrix::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
        os << "\\xymatrix";
        switch (spacing_code_) {
        case 'R':
@@ -72,7 +72,6 @@ void InsetMathXYMatrix::write(WriteStream & os) const
        os << '{';
        InsetMathGrid::write(os);
        os << "}\n";
-       os.pendingBrace(brace);
 }