]> git.lyx.org Git - lyx.git/blobdiff - src/LyXFunc.cpp
stickToCodingConventions.
[lyx.git] / src / LyXFunc.cpp
index 256f136dc8ca63304a0e555334c7639bed110122..dc04fc4c1bf17b0a92af49277c651336ff64c12b 100644 (file)
@@ -408,9 +408,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
 
        switch (cmd.action) {
        case LFUN_UNKNOWN_ACTION:
-#if !defined(HAVE_LIBMYTHES) && !defined(HAVE_LIBAIKSAURUS)
-       case LFUN_THESAURUS_ENTRY:
-#endif
                flag.unknown(true);
                flag.setEnabled(false);
                break;
@@ -1081,7 +1078,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        bool loaded = false;
                        string const abstmp = package().temp_dir().absFilename();
                        string const realtmp = package().temp_dir().realPath();
-                       if (prefixIs(file_name, abstmp) || prefixIs(file_name, realtmp)) {
+                       if (os::path_prefix_is(file_name, abstmp, os::CASE_ADJUSTED)
+                           || os::path_prefix_is(file_name, realtmp, os::CASE_ADJUSTED)) {
                                // Needed by inverse dvi search. If it is a file
                                // in tmpdir, call the apropriated function.
                                // If tmpdir is a symlink, we may have the real
@@ -1132,6 +1130,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        case INDEX_CODE:
                        case LABEL_CODE:
                        case NOMENCL_CODE:
+                       case NOMENCL_PRINT_CODE:
                        case REF_CODE:
                        case TOC_CODE:
                        case HYPERLINK_CODE: {