From a727b3206398d35d47ce60128232e45a1891b69d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 21 Aug 2002 15:39:54 +0000 Subject: [PATCH] fix crash git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5060 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/paragraph_funcs.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/paragraph_funcs.C b/src/paragraph_funcs.C index a203bf2d1f..4486bae1b4 100644 --- a/src/paragraph_funcs.C +++ b/src/paragraph_funcs.C @@ -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 at the + // end of a paragraph + tmp->layout(bparams.getLyXTextClass().defaultLayout()); // remember to set the inset_owner tmp->setInsetOwner(par->inInset()); -- 2.39.2