mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
small fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8030 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
649f67a794
commit
eb1bad7210
@ -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>
|
||||
|
||||
* ControlSpellchecker.[Ch] (nextWord, check): rewrite of the text
|
||||
|
@ -170,8 +170,11 @@ WordLangTuple nextWord(PosIterator & cur, PosIterator const & end,
|
||||
string str;
|
||||
// and find the end of the word (insets like optional hyphens
|
||||
// and ligature break are part of a word)
|
||||
for (; cur != end && isLetter(cur); ++cur, ++progress)
|
||||
str += cur.pit()->getChar(cur.pos());
|
||||
for (; cur != end && isLetter(cur); ++cur, ++progress) {
|
||||
if (!cur.pit()->isInset(cur.pos()))
|
||||
str += cur.pit()->getChar(cur.pos());
|
||||
}
|
||||
|
||||
|
||||
return WordLangTuple(str, lang_code);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user