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
This commit is contained in:
Lars Gullik Bjønnes 2002-03-07 10:12:59 +00:00
parent 1ce24386f2
commit 3173a2ee45
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-07 Lars Gullik Bjønnes <larsbj@birdstep.com>
* paragraph.C (breakParagraph): use default layout not layout of
prev paragraph.
2002-03-06 Juergen Vigna <jug@sad.it>
* buffer.C (parseSingleLyXformat2Token): changed "%" to "p%" as

View File

@ -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());