]> git.lyx.org Git - features.git/commit
Fix bug 6533: Spell-as-you-type stops checking words when they are already wrong
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 5 Jul 2010 15:15:13 +0000 (15:15 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 5 Jul 2010 15:15:13 +0000 (15:15 +0000)
commit3a5b4b8008d697b807019dda151dde4af1d169b8
treeddaf915bc852bdc0e38278ceb80767f7f85a6bfa
parent7049447fd70cc14d30deb641e76550c010a3e29f
Fix bug 6533: Spell-as-you-type stops checking words when they are already wrong

The problem was in FontList::setMisspelled, where an optimization looked at the first character of the word in order to return early when the misspelled flag is already correct. This does not work when the first letters of the word have this flag but not the last one.

If this optimization was really useful, it can be reimplemented properly in terms of font spans.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34765 a592a061-630c-0410-9148-cb99ea01b6c8
src/FontList.cpp