]> git.lyx.org Git - lyx.git/commitdiff
Don't disable apply button if one (or more) of vertical alignment, rotation,
authorEnrico Forestieri <forenr@lyx.org>
Wed, 16 Feb 2011 22:19:49 +0000 (22:19 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 16 Feb 2011 22:19:49 +0000 (22:19 +0000)
or long table settings are changed. Fixes bug #7308.

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

src/insets/InsetTabular.cpp

index 2f0a111fee411a681237cfdbe2a9c657edaf5674..3e2f6b304c41a51ed872032aa24d80d5be6d3d73 100644 (file)
@@ -4323,8 +4323,10 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
                        return true;
 
                case Tabular::SET_TABULAR_WIDTH:
-                       status.setEnabled(!tabular.rotate &&  !tabular.is_long_tabular
-                               && tabular.tabular_valignment == Tabular::LYX_VALIGN_MIDDLE);
+                       status.setEnabled(tabular.tabular_width.zero()
+                               || (!tabular.rotate &&  !tabular.is_long_tabular
+                                   && tabular.tabular_valignment ==
+                                               Tabular::LYX_VALIGN_MIDDLE));
                        break;
 
                case Tabular::SET_DECIMAL_POINT: