Spellchecker Bug fix: found word was not filled in.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30351 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-07-04 18:00:01 +00:00
parent c95f44b0b1
commit b8c470d55f

View File

@ -3385,8 +3385,10 @@ int Buffer::spellCheck(DocIterator & from, DocIterator & to,
while (from.inMathed())
from.forwardInset();
to = from;
if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions))
if (from.paragraph().spellCheck(from.pos(), to.pos(), wl, suggestions)) {
word_lang = wl;
break;
}
from = to;
++progress;
}