mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
fix crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5060 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e13f865926
commit
a727b32063
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user