]> git.lyx.org Git - features.git/commitdiff
Revert r27129. We can't get rid of these until we have something else positive to do.
authorRichard Heck <rgheck@comcast.net>
Sun, 26 Oct 2008 16:05:19 +0000 (16:05 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 26 Oct 2008 16:05:19 +0000 (16:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27138 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp
src/insets/InsetText.cpp

index d6b0bef0d807284d3316323c8056280b7e5f1483..84eb4e319b21c822e8e90adf5226743953f51774 100644 (file)
@@ -85,6 +85,7 @@ InsetCollapsable::InsetCollapsable(Buffer const & buf)
        setAutoBreakRows(true);
        setDrawFrame(true);
        setFrameColor(Color_collapsableframe);
+       paragraphs().back().setLayout(dc.plainLayout()); 
 }
 
 
index 45bd7be1a7561f1373d45410b00582b5088ef67f..db179fdcf59373e1aaf9bf824d514572856c6265 100644 (file)
@@ -105,6 +105,7 @@ void InsetText::initParagraphs()
        paragraphs().push_back(Paragraph());
        Paragraph & ourpar = paragraphs().back();
        ourpar.setInsetOwner(this);
+       ourpar.setPlainOrDefaultLayout(buffer_->params().documentClass());
 }