From: Vincent van Ravesteijn Date: Mon, 3 May 2010 17:55:44 +0000 (+0000) Subject: We want to check for the new value name instead for the old value cmdName_. X-Git-Tag: 2.0.0~3302 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=eb78affda715c3b9509e7c9a4a8bad9f52c89297;p=lyx.git 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 --- diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp index 1d0b0e088a..a0cbd6e785 100644 --- a/src/insets/InsetCommandParams.cpp +++ b/src/insets/InsetCommandParams.cpp @@ -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: "),