]> git.lyx.org Git - features.git/commitdiff
small fix
authorAlfredo Braunstein <abraunst@lyx.org>
Tue, 4 Nov 2003 10:30:36 +0000 (10:30 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Tue, 4 Nov 2003 10:30:36 +0000 (10:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8030 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 8b2dcc9531cd61ff76f71b69efebd32c9319225f..67e532930d8f3c9f4739c32922b0b0b3cbba82db 100644 (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>
 
        * ControlSpellchecker.[Ch] (nextWord, check): rewrite of the text 
index cb81403b01e6439e6c27fd47fd98cd0329d93b2f..3869fe89304ad58979070e9b6743a82c375fe3fb 100644 (file)
@@ -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);
 }