]> git.lyx.org Git - features.git/commitdiff
We want to check for the new value name instead for the old value cmdName_.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 May 2010 17:55:44 +0000 (17:55 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 May 2010 17:55:44 +0000 (17:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34358 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCommandParams.cpp

index 1d0b0e088af2e865010fecf5d2e45e586c4893ea..a0cbd6e785be498fdc71b2ec85d1d54b55fc3245 100644 (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: "),