]> git.lyx.org Git - lyx.git/blobdiff - src/CmdDef.cpp
Add \makeat switches to babel settings if necessary.
[lyx.git] / src / CmdDef.cpp
index a5ac6cf2d4e0838c8e8537599d2404e4aef59b60..1a9f42f4800ae21053e61c3963b99612d9c80844 100644 (file)
@@ -20,7 +20,6 @@
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
-#include <ostream>
 #include <string>
 
 using namespace std;
@@ -164,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;
        }