]> git.lyx.org Git - features.git/commitdiff
This hack seems to be no more needed. Let's see...
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 28 Dec 2012 08:47:58 +0000 (09:47 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 28 Dec 2012 08:47:58 +0000 (09:47 +0100)
src/insets/InsetText.cpp

index dca7b473f72f383136fcdc370538a530dd64946b..fd96fef0beb5e7cd086fdaa28824b083ec2d9692 100644 (file)
@@ -266,6 +266,9 @@ void InsetText::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        LYXERR(Debug::ACTION, "InsetText::doDispatch(): cmd: " << cmd);
 
+#if 0
+// FIXME: This code does not seem to be necessary anymore
+// Remove for 2.1 if no counter-evidence is found.
        if (isPassThru() && lyxCode() != ARG_CODE) {
                // Force any new text to latex_language FIXME: This
                // should only be necessary in constructor, but new
@@ -276,6 +279,7 @@ void InsetText::doDispatch(Cursor & cur, FuncRequest & cmd)
                cur.current_font.setLanguage(latex_language);
                cur.real_current_font.setLanguage(latex_language);
        }
+#endif
 
        switch (cmd.action()) {
        case LFUN_PASTE: