mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
179bacf1a0
commit
2e81620979
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -169,7 +169,7 @@ public:
|
||||
void doDispatch(Cursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
///
|
||||
void initParagraphs(BufferParams const &);
|
||||
void initParagraphs();
|
||||
///
|
||||
void setParagraphOwner();
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user