Fix bug #6751: Assert when changing number of columns in 'simple' math-inset.

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
This commit is contained in:
Vincent van Ravesteijn 2010-06-07 20:54:10 +00:00
parent ddc38c93ca
commit abbfb45998

View 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;