]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
fix "make check" with gcc 4.3
[lyx.git] / src / Text3.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