]> git.lyx.org Git - features.git/commitdiff
GuiTabular.cpp: fix bug #8092 also for branch
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 21 Mar 2012 20:50:34 +0000 (21:50 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 21 Mar 2012 20:50:34 +0000 (21:50 +0100)
src/frontends/qt4/GuiTabular.cpp
status.20x

index be775c41488185ea875f497a0f2357dde07d24f4..593be70e90d364eac84a2c5cae409b549bfe054d 100644 (file)
@@ -215,9 +215,6 @@ void GuiTabular::checkEnabled()
        tabularWidthED->setEnabled(setwidth);
        tabularWidthUnitLC->setEnabled(setwidth);
 
-       bool const is_tabular_star = !tabularWidthED->text().isEmpty();
-       rotateTabularCB->setDisabled(is_tabular_star);
-
        vAlignCO->setEnabled(!multirowCB->isChecked()
                && !widgetsToLength(columnWidthED, columnWidthUnitLC).empty()
                && specialAlignmentED->text().isEmpty());
@@ -231,6 +228,7 @@ void GuiTabular::checkEnabled()
        interlinespaceUnitLC->setEnabled(interlinespaceCO->currentIndex() == 2);
 
        // setting as longtable is not allowed when table is inside a float
+       bool const is_tabular_star = !tabularWidthED->text().isEmpty();
        longTabularCB->setEnabled(!is_tabular_star && funcEnabled(Tabular::SET_LONGTABULAR));
        bool const longtabular = longTabularCB->isChecked();
        longtableGB->setEnabled(true);
@@ -429,7 +427,7 @@ docstring GuiTabular::dialogToParams() const
 
        // apply the column alignment
        // multirows inherit the alignment from the column; if a column width
-       // is set, multicolumns are always left-aligned so that in this case
+       // is set, multirows are always left-aligned so that in this case
        // its alignment must not be applied (see bug #8084)
        if (!(multirowCB->isChecked() && width != "0pt"))
                setHAlign(param_str);
index b91d5a7bd7c2c67d3940c9f0e139dec49a222e9b..6dca76a2f9d3a3245cf1131e64810970c9a9f212 100644 (file)
@@ -101,6 +101,8 @@ What's new
 
 - Fix the selection of rows below a multirow (bug 8083).
 
+- Allow rotations of tables with a defined width (bug 8092).
+
 
 * DOCUMENTATION AND LOCALIZATION