]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.cpp
Do not force latex_language in arguments (bug #8471)
[features.git] / src / insets / InsetText.cpp
index 55543ab0d76a45a014023d860a9b49062e80c0a4..fac205070d7c3ec43ac0d2de280ca63b51c11415 100644 (file)
@@ -266,7 +266,7 @@ void InsetText::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        LYXERR(Debug::ACTION, "InsetText::doDispatch(): cmd: " << cmd);
 
-       if (isPassThru()) {
+       if (isPassThru() && lyxCode() != ARG_CODE) {
                // 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