Fix my fixme.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23977 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-26 17:11:49 +00:00
parent 40f58da65a
commit a9302220c2

View File

@ -1671,8 +1671,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
breakParagraph(cur);
}
//FIXME Check if this should be emptyLayout()
setLayout(cur, tclass.defaultLayoutName());
docstring const laystr = cur.inset().useEmptyLayout() ?
tclass.emptyLayoutName() :
tclass.defaultLayoutName();
setLayout(cur, laystr);
ParagraphParameters p;
setParagraphs(cur, p);
// FIXME This should be simplified when InsetFloatList takes a