]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
do what the FIXME suggested
[lyx.git] / src / Text2.cpp
index fa0ed179b30bbe775ac20737593e8fcdd8182078..c8fc4e70bfd65289deb099349f957ac87bb0c0e2 100644 (file)
@@ -225,7 +225,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
                lyx::dispatch(FuncRequest(LFUN_LINE_BEGIN));
                lyx::dispatch(FuncRequest(LFUN_LINE_END_SELECT));
                lyx::dispatch(FuncRequest(LFUN_CUT));
-               Inset * inset = new InsetEnvironment(params, layout);
+               Inset * inset = new InsetEnvironment(bv.buffer(), layout);
                insertInset(cur, inset);
                //inset->edit(cur, true);
                //lyx::dispatch(FuncRequest(LFUN_PASTE));