]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.cpp
Correct col spacing in Cases environment
[lyx.git] / src / mathed / InsetMathTabular.cpp
index 083b0e5ef52d99b4d6bd59886ed5f0ed53edea4a..2c814a38c6511ecf654ef5c693dd008dbeca9d29 100644 (file)
@@ -71,6 +71,7 @@ void InsetMathTabular::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')
@@ -82,6 +83,8 @@ void InsetMathTabular::write(WriteStream & os) const
        if (os.fragile())
                os << "\\protect";
        os << "\\end{" << name_ << '}';
+       if (open)
+               os.startOuterRow();
        // adding a \n here is bad if the tabular is the last item
        // in an \eqnarray...
 }