From: Jean-Marc Lasgouttes Date: Mon, 2 Aug 2010 21:20:59 +0000 (+0000) Subject: Fix bug #6736: 2.0.0 alpha 3, spell check on the fly bug X-Git-Tag: 2.0.0~2874 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b221b0e1fd3095f16546576898d730c5ebeb5354;p=features.git Fix bug #6736: 2.0.0 alpha 3, spell check on the fly bug 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 --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index e4a34b158c..e20b42ef7c 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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()