Juergen's compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7243 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-07-08 06:40:21 +00:00
parent e3fc822783
commit e1fb7cb03d
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-07-01 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* aspell.C: add missing namespace lyx::support
2003-07-07 Alfredo Brauntein <abraunst@libero.it>
* BufferView.[Ch] (newFile): Add

View File

@ -19,6 +19,8 @@
#include "aspell_local.h"
#include "WordLangTuple.h"
using namespace lyx::support;
using std::endl;
ASpell::ASpell(BufferParams const &, string const & lang)
@ -85,14 +87,14 @@ enum ASpell::Result ASpell::check(WordLangTuple const & word)
AspellSpeller * m = it->second.speller;
int word_ok = aspell_speller_check(m, word.word().c_str(), -1);
lyx::Assert(word_ok != -1);
Assert(word_ok != -1);
if (word_ok) {
res = OK;
} else {
AspellWordList const * sugs =
aspell_speller_suggest(m, word.word().c_str(), -1);
lyx::Assert(sugs != 0);
Assert(sugs != 0);
els = aspell_word_list_elements(sugs);
if (aspell_word_list_empty(sugs))
res = UNKNOWN;