]> git.lyx.org Git - lyx.git/blobdiff - src/CmdDef.cpp
Clarify "Save compressed by default" feature (bug 7822)
[lyx.git] / src / CmdDef.cpp
index b0b03350c7fbf1307c4aa5818d4c03df35dc707f..779ac8270a36dbed39b26dbe518431e493cc66d4 100644 (file)
@@ -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;
        }