X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCmdDef.cpp;h=779ac8270a36dbed39b26dbe518431e493cc66d4;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=17c6fc52f4ef459102a3cca62ed1f371caeac4e5;hpb=4c7a5d00245799695ea81aa0192151eed8f9c5fb;p=lyx.git diff --git a/src/CmdDef.cpp b/src/CmdDef.cpp index 17c6fc52f4..779ac8270a 100644 --- a/src/CmdDef.cpp +++ b/src/CmdDef.cpp @@ -152,7 +152,7 @@ void CmdDef::release(string const & name) CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, - string const & def) + string const & def) { string const name2 = trim(name); @@ -163,8 +163,8 @@ CmdDef::newCmdDefResult CmdDef::newCmdDef(string const & name, return CmdDefExists; FuncRequest func = lyxaction.lookupFunc(def); - if (func.action_ == LFUN_NOACTION - || func.action_ == LFUN_UNKNOWN_ACTION) { + if (func.action() == LFUN_NOACTION + || func.action() == LFUN_UNKNOWN_ACTION) { return CmdDefInvalid; }