From: Angus Leeming Date: Tue, 3 May 2005 22:24:43 +0000 (+0000) Subject: Fix bug 1876. Thanks Alfredo. Thanks Felix-Antoine. X-Git-Tag: 1.6.10~14327 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=026cce7c1e2e6b2440b4b3777e89b5b4a1e38e3c;p=features.git Fix bug 1876. Thanks Alfredo. Thanks Felix-Antoine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9902 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index b2e212990c..ae205a45df 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,11 @@ +2005-05-03 Alfredo Braunstein + + * 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 * ControlSpellchecker.C: clean-up the creation of the wrappers to diff --git a/src/frontends/controllers/ControlSpellchecker.C b/src/frontends/controllers/ControlSpellchecker.C index 369ecb7520..161fba9d27 100644 --- a/src/frontends/controllers/ControlSpellchecker.C +++ b/src/frontends/controllers/ControlSpellchecker.C @@ -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();