]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Manage the initial setting of Default or Plain Layout more simply.
[features.git] / src / insets / InsetCaption.cpp
index e66b728d4ecd4c2bd927fe96f0ec2eee4994db2e..a846fc9159360d9155da2752c1f41f2f9b980dbb 100644 (file)
@@ -48,13 +48,11 @@ namespace lyx {
 
 
 InsetCaption::InsetCaption(Buffer const & buf)
-       : InsetText(buf)
+       : InsetText(buf, InsetText::PlainLayout)
 {
        setAutoBreakRows(true);
        setDrawFrame(true);
        setFrameColor(Color_captionframe);
-       // caption insets should use the plain layout
-       paragraphs().back().setPlainLayout(buf.params().documentClass());
 }