From 3173a2ee455ddab1859ece1163d36ca12ef61433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 7 Mar 2002 10:12:59 +0000 Subject: [PATCH] use layout default not layout from prev para git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3683 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/paragraph.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 74816035ce..f31f273869 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-03-07 Lars Gullik Bjønnes + + * paragraph.C (breakParagraph): use default layout not layout of + prev paragraph. + 2002-03-06 Juergen Vigna * buffer.C (parseSingleLyXformat2Token): changed "%" to "p%" as diff --git a/src/paragraph.C b/src/paragraph.C index 6cd8122d48..8d53f214c5 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -850,7 +850,7 @@ void Paragraph::breakParagraph(BufferParams const & bparams, { // create a new paragraph Paragraph * tmp = new Paragraph(this); - tmp->layout(layout()); + tmp->layout(textclasslist[bparams.textclass].defaultLayoutName()); // remember to set the inset_owner tmp->setInsetOwner(inInset());