]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetERT.cpp
Fix bug 4037 and related problems. The patch has been cleaned up a bit
[features.git] / src / insets / InsetERT.cpp
index d419e136b23b17df4fa2e8978ef6eaed145e97f4..763a448ec418dbe4c15c9626450f452b12af598d 100644 (file)
@@ -119,7 +119,7 @@ void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        BufferParams const & bp = cur.buffer().params();
        LayoutPtr const layout =
-                       bp.getTextClass().defaultLayout();
+                       bp.getTextClass().emptyLayout();
        //lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {