]> git.lyx.org Git - features.git/commitdiff
Fix bug 1876. Thanks Alfredo. Thanks Felix-Antoine.
authorAngus Leeming <leeming@lyx.org>
Tue, 3 May 2005 22:24:43 +0000 (22:24 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 3 May 2005 22:24:43 +0000 (22:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9902 a592a061-630c-0410-9148-cb99ea01b6c8

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

index b2e212990cb092912a9c718444148f4cbdb5a431..ae205a45dfced9d00d0f9b8dfd0877d0edcdce7c 100644 (file)
@@ -1,3 +1,11 @@
+2005-05-03  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * ControlSpellchecker.C (check): increment 'start', the beginning
+       of the next word to spell check only if cur.pos() != 0.
+       This fixes bug 1876 in which LyX will not check the very first word
+       of the document if the cursor is placed at the beginning of that
+       paragraph (just before the first letter at position 0).
+
 2005-05-02  Angus Leeming  <leeming@lyx.org>
 
        * ControlSpellchecker.C: clean-up the creation of the wrappers to
index 369ecb7520c6d2983d531af35957fa0d28207a35..161fba9d271a7936cbda711e2ff5d0f5fc08ca1d 100644 (file)
@@ -198,7 +198,7 @@ void ControlSpellchecker::check()
        for (total = start; it; it.forwardPos())
                ++total;
 
-       for (; cur && isLetter(cur); cur.forwardPos())
+       for (; cur && cur.pos() && isLetter(cur); cur.forwardPos())
                ++start;
 
        BufferParams & bufferparams = kernel().buffer().params();