From: Juergen Spitzmueller Date: Sat, 5 Nov 2016 12:10:51 +0000 (+0100) Subject: Re-Fix #8471 X-Git-Tag: 2.3.0alpha1~765 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e7654d9aa213a90fe957876b22f3a21d0a6cabab;p=features.git Re-Fix #8471 The bug has partly been re-introduced with fb9a866a6 --- diff --git a/src/insets/InsetArgument.cpp b/src/insets/InsetArgument.cpp index 70dc995699..6ba49c7aef 100644 --- a/src/insets/InsetArgument.cpp +++ b/src/insets/InsetArgument.cpp @@ -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