]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.cpp
Remove TextClassPtr without losing the type safety it provided.
[lyx.git] / src / insets / InsetERT.cpp
index 1ea0783a88657d7c49f75e77db1fa567c605147e..937696f0583b639e48d7a7c1010250f9d457d37f 100644 (file)
@@ -115,8 +115,7 @@ int InsetERT::docbook(odocstream & os, OutputParams const &) const
 void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        BufferParams const & bp = cur.buffer().params();
-       LayoutPtr const layout =
-                       bp.textClass().emptyLayout();
+       LayoutPtr const layout = bp.documentClass().emptyLayout();
        //lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {