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
This commit is contained in:
Jean-Marc Lasgouttes 2010-08-02 21:20:59 +00:00
parent 15f9312d80
commit b221b0e1fd

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