]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / InsetMathArray.cpp
index 7b7d01dea9e5c0e75963c576dfac4aa695967dc6..a543a036f61de6aa9c6d9179bf10647db85a96bc 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -95,7 +95,7 @@ void InsetMathArray::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathArray::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
 
        if (os.fragile())
                os << "\\protect";
@@ -113,8 +113,6 @@ void InsetMathArray::write(WriteStream & os) const
        os << "\\end{" << name_ << '}';
        // adding a \n here is bad if the array is the last item
        // in an \eqnarray...
-
-       os.pendingBrace(brace);
 }