]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.cpp
move some code from InsetCollapsable::doDispatch to InsetText
[features.git] / src / insets / InsetCollapsable.cpp
index 54110509b4286097ad5d0fa2b90e908cf2139b8b..75c6ef3ab4ab977557d222f4b9a46a5ea9974cb5 100644 (file)
@@ -629,16 +629,6 @@ void InsetCollapsable::doDispatch(Cursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               if (getLayout().isForceLtr()) {
-                       // Force any new text to latex_language
-                       // FIXME: This should only be necessary in constructor, but
-                       // new paragraphs that are created by pressing enter at the
-                       // start of an existing paragraph get the buffer language
-                       // and not latex_language, so we take this brute force
-                       // approach.
-                       cur.current_font.setLanguage(latex_language);
-                       cur.real_current_font.setLanguage(latex_language);
-               }
                InsetText::doDispatch(cur, cmd);
                break;
        }