mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
9d1f1e285c
commit
eb78affda7
@ -251,7 +251,7 @@ bool InsetCommandParams::isCompatibleCommand(InsetCode code, string const & s)
|
|||||||
|
|
||||||
void InsetCommandParams::setCmdName(string const & name)
|
void InsetCommandParams::setCmdName(string const & name)
|
||||||
{
|
{
|
||||||
if (!isCompatibleCommand(insetCode_, cmdName_)) {
|
if (!isCompatibleCommand(insetCode_, name)) {
|
||||||
LYXERR0("InsetCommand: Incompatible command name " <<
|
LYXERR0("InsetCommand: Incompatible command name " <<
|
||||||
name << ".");
|
name << ".");
|
||||||
throw ExceptionMessage(WarningException, _("InsetCommand Error: "),
|
throw ExceptionMessage(WarningException, _("InsetCommand Error: "),
|
||||||
|
Loading…
Reference in New Issue
Block a user