The last commit was, uhh, not what I intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27129 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-10-26 02:14:30 +00:00
parent 179bacf1a0
commit 2e81620979
2 changed files with 4 additions and 7 deletions

View File

@ -71,11 +71,11 @@ using graphics::PreviewLoader;
/////////////////////////////////////////////////////////////////////
InsetText::InsetText(Buffer const & buf, bool useplain)
InsetText::InsetText(Buffer const & buf)
: drawFrame_(false), frame_color_(Color_insetframe)
{
setBuffer(const_cast<Buffer &>(buf));
initParagraphs(useplain);
initParagraphs();
}
@ -99,15 +99,12 @@ void InsetText::setBuffer(Buffer & buf)
}
void InsetText::initParagraphs(bool useplain)
void InsetText::initParagraphs()
{
LASSERT(paragraphs().empty(), /**/);
paragraphs().push_back(Paragraph());
Paragraph & ourpar = paragraphs().back();
ourpar.setInsetOwner(this);
DocumentClass const & dc = buffer_.params().documentClass();
Layout const & lay = useplain ? dc.plainLayout() : dc.defaultLayout();
ourpar.setLayout(lay);
}

View File

@ -169,7 +169,7 @@ public:
void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
///
void initParagraphs(BufferParams const &);
void initParagraphs();
///
void setParagraphOwner();
///