small fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8030 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-04 10:30:36 +00:00
parent 649f67a794
commit eb1bad7210
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-04 Alfredo Braunstein <abraunst@libero.it>
* ControlSpellchecker.C (nextWord): do not send ligature breaks
and other nasty insets to the spellchecker
2003-11-04 Alfredo Braunstein <abraunst@libero.it> 2003-11-04 Alfredo Braunstein <abraunst@libero.it>
* ControlSpellchecker.[Ch] (nextWord, check): rewrite of the text * ControlSpellchecker.[Ch] (nextWord, check): rewrite of the text

View File

@ -170,8 +170,11 @@ WordLangTuple nextWord(PosIterator & cur, PosIterator const & end,
string str; string str;
// and find the end of the word (insets like optional hyphens // and find the end of the word (insets like optional hyphens
// and ligature break are part of a word) // and ligature break are part of a word)
for (; cur != end && isLetter(cur); ++cur, ++progress) for (; cur != end && isLetter(cur); ++cur, ++progress) {
str += cur.pit()->getChar(cur.pos()); if (!cur.pit()->isInset(cur.pos()))
str += cur.pit()->getChar(cur.pos());
}
return WordLangTuple(str, lang_code); return WordLangTuple(str, lang_code);
} }