X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCmdDef.cpp;h=779ac8270a36dbed39b26dbe518431e493cc66d4;hb=6de3c19fd63f810eed90ef3bc4469faf28e949c2;hp=b0b03350c7fbf1307c4aa5818d4c03df35dc707f;hpb=45bc27809bae95259e251a2215b39f945d8835ca;p=lyx.git diff --git a/src/CmdDef.cpp b/src/CmdDef.cpp index b0b03350c7..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; }