]> git.lyx.org Git - features.git/commitdiff
Fix bug 5782.
authorRichard Heck <rgheck@comcast.net>
Mon, 16 Mar 2009 20:10:57 +0000 (20:10 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 16 Mar 2009 20:10:57 +0000 (20:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28823 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp
src/insets/InsetERT.cpp

index 50dcf34f7ca15df2500844654e69a00a5cd69df4..0a84a70f536849ec644a9f3faed55ab0a53c9d2e 100644 (file)
@@ -1209,7 +1209,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                pos_type pos = cur.pos();
                BufferParams const & bufparams = bv->buffer().params();
                Layout const & style = par.layout();
-               if (!style.pass_thru
+               InsetLayout const & ilayout = cur.inset().getLayout(bufparams);
+               if (!style.pass_thru && !ilayout.isPassThru()
                    && par.getFontSettings(bufparams, pos).language()->lang() != "hebrew") {
                        // this avoids a double undo
                        // FIXME: should not be needed, ideally
index 95cda7e7ca12f10dc628415ad65be3c0619a14d7..bd59d14072c7fea2e37af3b9ac9b5bac35797f04 100644 (file)
@@ -109,12 +109,6 @@ void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
        Layout const layout = bp.documentClass().plainLayout();
        //lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {
-       case LFUN_QUOTE_INSERT: {
-               // We need to bypass the fancy quotes in Text
-               FuncRequest f(LFUN_SELF_INSERT, "\"");
-               dispatch(cur, f);
-               break;
-       }
        case LFUN_INSET_MODIFY: {
                setStatus(cur, string2params(to_utf8(cmd.argument())));
                break;