]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Customization.lyx: rewrote section how to install LaTeX-packages
[lyx.git] / src / Text2.cpp
index 0b4b5e33fb2c16c5794caf787e2fa1f5bded5bae..9ce5d98fa9330ebf94c12a5b03a9444719effd55 100644 (file)
@@ -33,7 +33,6 @@
 #include "CutAndPaste.h"
 #include "DispatchResult.h"
 #include "ErrorList.h"
-#include "FuncRequest.h"
 #include "Language.h"
 #include "Layout.h"
 #include "Lexer.h"
@@ -357,6 +356,9 @@ void Text::setFont(BufferView const & bv, CursorSlice const & begin,
                Font f = tm.displayFont(pit, pos);
                f.update(font, language, toggleall);
                setCharFont(pit, pos, f, tm.font_);
+               // font change may change language... 
+               // spell checker has to know that
+               pars_[pit].requestSpellCheck(pos);
        }
 }