We want to check for the new value name instead for the old value cmdName_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34358 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-05-03 17:55:44 +00:00
parent 9d1f1e285c
commit eb78affda7

View File

@ -251,7 +251,7 @@ bool InsetCommandParams::isCompatibleCommand(InsetCode code, string const & s)
void InsetCommandParams::setCmdName(string const & name)
{
if (!isCompatibleCommand(insetCode_, cmdName_)) {
if (!isCompatibleCommand(insetCode_, name)) {
LYXERR0("InsetCommand: Incompatible command name " <<
name << ".");
throw ExceptionMessage(WarningException, _("InsetCommand Error: "),