]> git.lyx.org Git - features.git/commitdiff
bug 2062: Spellcheck stops at ligature breaks without warning
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 5 Oct 2005 13:44:17 +0000 (13:44 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 5 Oct 2005 13:44:17 +0000 (13:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10524 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlSpellchecker.C

index 8c64cb4eb4826180ee6eb8f13f95c9b996f764b9..25c8842271c3eb79206343811804bfd1025cb1eb 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * ControlSpellchecker.C (nextWord): do not return empty word
+       unless at the end of the document (bug 2062)
+
 2005-10-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * ControlSpellchecker.C (check): make sure that word at cursor
index 2e4355965ef0944676d931b71ec73ad04173bf52..7e0c88d281d247a926c71ca8c48e638e65ac2387 100644 (file)
@@ -166,7 +166,7 @@ WordLangTuple nextWord(DocIterator & cur, ptrdiff_t & progress,
                        }
                } else { // !isLetter(cur)
                        if (inword)
-                               if (!ignoreword)
+                               if (!word.empty() && !ignoreword)
                                        return WordLangTuple(word, lang_code);
                                else
                                        inword = false;