From b8c470d55f0bb46175c8e022f2ebec3db56616a3 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 4 Jul 2009 18:00:01 +0000 Subject: [PATCH] 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 --- src/Buffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 627159826a..c9dadd0837 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; } -- 2.39.2