]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Revert r37704. It enabled SET_TABULAR_WIDTH for all longtables (new fix coming soon)
[features.git] / src / insets / InsetTabular.cpp
index 3e2f6b304c41a51ed872032aa24d80d5be6d3d73..2f0a111fee411a681237cfdbe2a9c657edaf5674 100644 (file)
@@ -4323,10 +4323,8 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
                        return true;
 
                case Tabular::SET_TABULAR_WIDTH:
-                       status.setEnabled(tabular.tabular_width.zero()
-                               || (!tabular.rotate &&  !tabular.is_long_tabular
-                                   && tabular.tabular_valignment ==
-                                               Tabular::LYX_VALIGN_MIDDLE));
+                       status.setEnabled(!tabular.rotate &&  !tabular.is_long_tabular
+                               && tabular.tabular_valignment == Tabular::LYX_VALIGN_MIDDLE);
                        break;
 
                case Tabular::SET_DECIMAL_POINT: