]> git.lyx.org Git - features.git/commitdiff
Fix bug #6736: 2.0.0 alpha 3, spell check on the fly bug
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Aug 2010 21:20:59 +0000 (21:20 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Aug 2010 21:20:59 +0000 (21:20 +0000)
This bug is related to the fact that the cusor remember the current font.

The on-the-fly spell status should really not be kept in the Font object, but
rather in metrics, IMO.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35041 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp

index e4a34b158ce88590237ee7ad3c4c75ec6b118409..e20b42ef7cf7f1e8b4e9deafc9ed82c73c21473f 100644 (file)
@@ -2265,7 +2265,9 @@ void Cursor::setCurrentFont()
        // get font
        BufferParams const & bufparams = buffer()->params();
        current_font = par.getFontSettings(bufparams, cpos);
+       current_font.setMisspelled(false);
        real_current_font = tm.displayFont(cpit, cpos);
+       real_current_font.setMisspelled(false);
 
        // special case for paragraph end
        if (cs.pos() == lastpos()