]> git.lyx.org Git - features.git/commitdiff
Re-Fix #8471
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 5 Nov 2016 12:10:51 +0000 (13:10 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 5 Nov 2016 12:12:47 +0000 (13:12 +0100)
The bug has partly been re-introduced with fb9a866a6

src/insets/InsetArgument.cpp

index 70dc995699b30438dc36a229b65119b28b79c7b0..6ba49c7aef85c14cca70706cc2b2f78b76b59c7a 100644 (file)
@@ -175,10 +175,12 @@ void InsetArgument::doDispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_CLIPBOARD_PASTE:
        case LFUN_SELECTION_PASTE:
        case LFUN_PRIMARY_SELECTION_PASTE:
-               // Do not call InsetCollapsable::doDispatch(cur, cmd)
-               // with (inherited) pass_thru to avoid call for
-               // fixParagraphsFont(), which does not play nicely with
-               // inherited pass_thru (see #8471).
+       case LFUN_SELF_INSERT:
+               // With (only) inherited pass_thru, call Text::dispatch()
+               // directly to avoid call for fixParagraphsFont() and/or
+               // forcing to latex_language in InsetText::dispatch(),
+               // since this does not play nicely with inherited pass_thru
+               // (see #8471).
                if (pass_thru_ && !pass_thru_local_)
                        text().dispatch(cur, cmd);
                else