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
This commit is contained in:
Angus Leeming 2005-05-03 22:24:43 +00:00
parent 4db573abbe
commit 026cce7c1e
2 changed files with 9 additions and 1 deletions

View 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

View 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();