]> git.lyx.org Git - features.git/commitdiff
fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4688
authorEdwin Leuven <e.leuven@gmail.com>
Mon, 31 Mar 2008 12:09:24 +0000 (12:09 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Mon, 31 Mar 2008 12:09:24 +0000 (12:09 +0000)
nest sideways in multicolumn instead of other way around

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24071 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 5b07135ec2dd8fe13f532f896cbf01ebef9350a3..e2c4bef099950daa413ecafba8a1b97f685476bd 100644 (file)
@@ -1867,10 +1867,6 @@ int Tabular::TeXCellPreamble(odocstream & os, idx_type cell, bool & ismulticol)
 {
        int ret = 0;
 
-       if (getRotateCell(cell)) {
-               os << "\\begin{sideways}\n";
-               ++ret;
-       }
        Tabular::VAlignment valign =  getVAlignment(cell, !isMultiColumn(cell));
        LyXAlignment align = getAlignment(cell, !isMultiColumn(cell));
        // figure out how to set the lines
@@ -1933,6 +1929,10 @@ int Tabular::TeXCellPreamble(odocstream & os, idx_type cell, bool & ismulticol)
                        os << '|';
                os << "}{";
                }
+       if (getRotateCell(cell)) {
+               os << "\\begin{sideways}\n";
+               ++ret;
+       }
        if (getUsebox(cell) == BOX_PARBOX) {
                os << "\\parbox[";
                switch (valign) {
@@ -1980,13 +1980,13 @@ int Tabular::TeXCellPostamble(odocstream & os, idx_type cell, bool ismulticol) c
                os << "%\n\\end{minipage}";
                ret += 2;
        }
-       if (ismulticol) {
-               os << '}';
-       }
        if (getRotateCell(cell)) {
                os << "%\n\\end{sideways}";
                ++ret;
        }
+       if (ismulticol) {
+               os << '}';
+       }
        return ret;
 }