]> git.lyx.org Git - lyx.git/blobdiff - src/aspell.C
hopefully fix tex2lyx linking.
[lyx.git] / src / aspell.C
index be2dc6ae981734d7c9b29c37948c21142ffca9fc..f9caa75233a690270ba6c0259b50f89d9f8a69e1 100644 (file)
@@ -22,6 +22,7 @@
 
 using std::string;
 
+namespace lyx {
 
 ASpell::ASpell(BufferParams const &, string const & lang)
        : els(0), spell_error_object(0)
@@ -132,13 +133,16 @@ string const ASpell::nextMiss()
 }
 
 
-string const ASpell::error()
+docstring const ASpell::error()
 {
        char const * err = 0;
-
+       
        if (spell_error_object && aspell_error_number(spell_error_object) != 0) {
                err = aspell_error_message(spell_error_object);
        }
 
-       return (err ? err : "");
+       return (err ? from_utf8(err) : docstring());
 }
+
+
+} // namespace lyx