]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.cpp
do what the FIXME suggested
[lyx.git] / src / paragraph_funcs.cpp
index 7d984f61ad32a8063fa57bbb07ab6c3d4e44fc1e..e8241050b07b470a0bc76ddd4f21f543801f5d06 100644 (file)
@@ -76,7 +76,7 @@ void breakParagraph(BufferParams const & bparams,
        tmp->setInsetOwner(par.inInset());
        // without doing that we get a crash when typing <Return> at the
        // end of a paragraph
-       tmp->setEmptyOrDefaultLayout(bparams.textClass());
+       tmp->setEmptyOrDefaultLayout(bparams.documentClass());
 
        // layout stays the same with latex-environments
        if (keep_layout) {
@@ -141,7 +141,7 @@ void breakParagraph(BufferParams const & bparams,
                par.params().clear();
                // do not lose start of appendix marker (bug 4212)
                par.params().startOfAppendix(soa);
-               par.setEmptyOrDefaultLayout(bparams.textClass());
+               par.setEmptyOrDefaultLayout(bparams.documentClass());
        }
 
        // layout stays the same with latex-environments