#include "support/debug.h"
+#include "support/lassert.h"
#include <boost/next_prior.hpp>
using namespace std;
tmp->setInsetOwner(par.inInset());
// without doing that we get a crash when typing <Return> at the
// end of a paragraph
- tmp->setEmptyOrDefaultLayout(bparams.documentClass());
+ tmp->setPlainOrDefaultLayout(bparams.documentClass());
// layout stays the same with latex-environments
if (keep_layout) {
par.params().clear();
// do not lose start of appendix marker (bug 4212)
par.params().startOfAppendix(soa);
- par.setEmptyOrDefaultLayout(bparams.documentClass());
+ par.setPlainOrDefaultLayout(bparams.documentClass());
}
// layout stays the same with latex-environments
tmp.makeSameLayout(par);
- BOOST_ASSERT(pos <= par.size());
+ LASSERT(pos <= par.size(), /**/);
if (pos < par.size()) {
// move everything behind the break position to the new paragraph