]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCommandParams.cpp
We want to check for the new value name instead for the old value cmdName_.
[features.git] / 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: "),