fix crash

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5060 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-21 15:39:54 +00:00
parent e13f865926
commit a727b32063

View File

@ -28,6 +28,9 @@ void breakParagraph(BufferParams const & bparams,
{
// create a new paragraph
Paragraph * tmp = new Paragraph(par);
// without doing that we get a crash when typing <Return> at the
// end of a paragraph
tmp->layout(bparams.getLyXTextClass().defaultLayout());
// remember to set the inset_owner
tmp->setInsetOwner(par->inInset());