From 6b0e3499806fec531ad70d704c1dd381bdb28f4f Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 26 Oct 2008 16:05:19 +0000 Subject: [PATCH] Revert r27129. We can't get rid of these until we have something else positive to do. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27138 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCollapsable.cpp | 1 + src/insets/InsetText.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index d6b0bef0d8..84eb4e319b 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -85,6 +85,7 @@ InsetCollapsable::InsetCollapsable(Buffer const & buf) setAutoBreakRows(true); setDrawFrame(true); setFrameColor(Color_collapsableframe); + paragraphs().back().setLayout(dc.plainLayout()); } diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 45bd7be1a7..db179fdcf5 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -105,6 +105,7 @@ void InsetText::initParagraphs() paragraphs().push_back(Paragraph()); Paragraph & ourpar = paragraphs().back(); ourpar.setInsetOwner(this); + ourpar.setPlainOrDefaultLayout(buffer_->params().documentClass()); }