]> git.lyx.org Git - lyx.git/commitdiff
Do not force latex_language in arguments (bug #8471)
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 27 Dec 2012 10:05:39 +0000 (11:05 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 27 Dec 2012 10:05:39 +0000 (11:05 +0100)
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