mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
e3fc822783
commit
e1fb7cb03d
@ -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>
|
2003-07-07 Alfredo Brauntein <abraunst@libero.it>
|
||||||
|
|
||||||
* BufferView.[Ch] (newFile): Add
|
* BufferView.[Ch] (newFile): Add
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "aspell_local.h"
|
#include "aspell_local.h"
|
||||||
#include "WordLangTuple.h"
|
#include "WordLangTuple.h"
|
||||||
|
|
||||||
|
using namespace lyx::support;
|
||||||
|
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
ASpell::ASpell(BufferParams const &, string const & lang)
|
ASpell::ASpell(BufferParams const &, string const & lang)
|
||||||
@ -85,14 +87,14 @@ enum ASpell::Result ASpell::check(WordLangTuple const & word)
|
|||||||
AspellSpeller * m = it->second.speller;
|
AspellSpeller * m = it->second.speller;
|
||||||
|
|
||||||
int word_ok = aspell_speller_check(m, word.word().c_str(), -1);
|
int word_ok = aspell_speller_check(m, word.word().c_str(), -1);
|
||||||
lyx::Assert(word_ok != -1);
|
Assert(word_ok != -1);
|
||||||
|
|
||||||
if (word_ok) {
|
if (word_ok) {
|
||||||
res = OK;
|
res = OK;
|
||||||
} else {
|
} else {
|
||||||
AspellWordList const * sugs =
|
AspellWordList const * sugs =
|
||||||
aspell_speller_suggest(m, word.word().c_str(), -1);
|
aspell_speller_suggest(m, word.word().c_str(), -1);
|
||||||
lyx::Assert(sugs != 0);
|
Assert(sugs != 0);
|
||||||
els = aspell_word_list_elements(sugs);
|
els = aspell_word_list_elements(sugs);
|
||||||
if (aspell_word_list_empty(sugs))
|
if (aspell_word_list_empty(sugs))
|
||||||
res = UNKNOWN;
|
res = UNKNOWN;
|
||||||
|
Loading…
Reference in New Issue
Block a user