]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathArray.cpp
index 7b7d01dea9e5c0e75963c576dfac4aa695967dc6..d86040411093ed3a7e8bd212fa7d7f0a23592ff8 100644 (file)
@@ -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);
 }