]> git.lyx.org Git - lyx.git/blobdiff - src/Thesaurus.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / Thesaurus.cpp
index e7bee50aa4b1d236ca0f104239eaa91eb9d52348..357ddbbe0bf42c919b08996ca031280f1f91c5ee 100644 (file)
@@ -110,7 +110,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const &)
 bool Thesaurus::thesaurusAvailable(docstring const & lang) const
 {
        // we support English only
-       return (prefixIs(lang, "en_"));
+       return prefixIs(lang, from_ascii("en_"));
 }
 
 #endif // HAVE_LIBAIKSAURUS
@@ -265,7 +265,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const & lan
 }
 
 #else
-
+#ifndef HAVE_LIBAIKSAURUS
 Thesaurus::Thesaurus()
 {
 }
@@ -281,6 +281,13 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
        return Meanings();
 }
 
+
+bool Thesaurus::thesaurusAvailable(docstring const & lang) const
+{
+       return false;
+}
+
+#endif
 #endif // HAVE_LIBMYTHES
 
 // Global instance