]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathArray.cpp
Allow automatic text direction in Painter::text()
[lyx.git] / src / mathed / InsetMathArray.cpp
index 821f4605e8f119a5fa74210d319ad9e9d06f4887..d5f9164273f93263ec21528b2b4b406bf0468c85 100644 (file)
@@ -103,6 +103,7 @@ void InsetMathArray::write(WriteStream & os) const
        if (os.fragile())
                os << "\\protect";
        os << "\\begin{" << name_ << '}';
+       bool open = os.startOuterRow();
 
        char const v = verticalAlignment();
        if (v == 't' || v == 'b')
@@ -114,6 +115,8 @@ void InsetMathArray::write(WriteStream & os) const
        if (os.fragile())
                os << "\\protect";
        os << "\\end{" << name_ << '}';
+       if (open)
+               os.startOuterRow();
        // adding a \n here is bad if the array is the last item
        // in an \eqnarray...
 }