]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
tex2lyx/text.cpp: fix 2 typos
[lyx.git] / src / Paragraph.cpp
index fe7dc3e2e53d281dfba11a94ae7842afe69192ae..d17540d4ad70abd41bcaace8f2bc5a5cd3dec665 100644 (file)
@@ -43,7 +43,6 @@
 #include "TextClass.h"
 #include "TexRow.h"
 #include "Text.h"
-#include "VSpace.h"
 #include "WordLangTuple.h"
 #include "WordList.h"
 
@@ -2932,9 +2931,9 @@ void Paragraph::changeLanguage(BufferParams const & bparams,
                if (font.language() == from) {
                        font.setLanguage(to);
                        setFont(i, font);
+                       d->requestSpellCheck(i);
                }
        }
-       d->requestSpellCheck(size());
 }