mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* Paragraph.cpp (spellcheck):
- comment out code that makes aspell abort if a word in an unknown language is being checked (instead of just skipping this word) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33387 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ead206efb0
commit
0d7f4bc32b
@ -3182,13 +3182,17 @@ bool Paragraph::spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl,
|
||||
}
|
||||
wl = WordLangTuple(word, lang);
|
||||
SpellChecker::Result res = speller->check(wl);
|
||||
#if 0
|
||||
// FIXME: the code below makes aspell abort if a word in an unknown
|
||||
// language is checked.
|
||||
// Just ignore any error that the spellchecker reports.
|
||||
// FIXME: we should through out an exception and catch it in the GUI to
|
||||
// display the error.
|
||||
if (!speller->error().empty())
|
||||
return false;
|
||||
#endif
|
||||
|
||||
bool const misspelled = res != SpellChecker::OK
|
||||
bool misspelled = res != SpellChecker::OK
|
||||
&& res != SpellChecker::IGNORED_WORD;
|
||||
|
||||
if (lyxrc.spellcheck_continuously)
|
||||
|
Loading…
Reference in New Issue
Block a user