]> 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 151c8dabec9c02e9dbfb14db43f191e3be54899a..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()
 {
 }
@@ -276,11 +276,18 @@ Thesaurus::~Thesaurus()
 }
 
 
-Thesaurus::Meanings Thesaurus::lookup(docstring const &)
+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