]> git.lyx.org Git - features.git/commitdiff
Fix bug #6751: Assert when changing number of columns in 'simple' math-inset.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Jun 2010 20:54:10 +0000 (20:54 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Jun 2010 20:54:10 +0000 (20:54 +0000)
In r33495, "LFUN_TABULAR_FEATURE" was replaced by "LFUN_INSET_MODIFY tabular". However, the status of LFUN_INSET_MODIFY is always enabled while a lot of insets are not allowed to change the number of columns etc.

There we need to disable the "LFUN_INSET_MODIFY tabular" status.

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

src/insets/Inset.cpp

index dcd11e599dff9c285fdc68ed3f2c2bd4c8398611..96e2174064c4e7045409739b5a309d95fd074ed1 100644 (file)
@@ -370,6 +370,11 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd,
                // Allow modification of our data.
                // This needs to be handled in the doDispatch method of our
                // instantiatable children.
+               // FIXME: Why don't we let the insets determine whether this
+               // should be enabled or not ? Now we need this check for 
+               // the tabular features. (vfr)
+               if (cmd.getArg(0) == "tabular")
+                       return false;
                flag.setEnabled(true);
                return true;