From: Vincent van Ravesteijn Date: Mon, 7 Jun 2010 20:54:10 +0000 (+0000) Subject: Fix bug #6751: Assert when changing number of columns in 'simple' math-inset. X-Git-Tag: 2.0.0~3166 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=abbfb45998c863d379876d62cf6ab3c7d2f81ac7;p=features.git 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 --- diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index dcd11e599d..96e2174064 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -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;