]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBranch.cpp
This is a conservative fix for the layout setting bug discussed in
[features.git] / src / insets / InsetBranch.cpp
index 1533b3032982f8c0972bcfcfb75a7783f1c8080c..2933e1b22c79fdb62d08383b6fb4a03c0c352fcb 100644 (file)
@@ -41,7 +41,12 @@ namespace lyx {
 
 InsetBranch::InsetBranch(Buffer const & buf, InsetBranchParams const & params)
        : InsetCollapsable(buf), params_(params)
-{}
+{
+       // override the default for InsetCollapsable, which is to
+       // use the plain layout.
+       DocumentClass const & dc = buf.params().documentClass();
+       paragraphs().back().setDefaultLayout(dc);
+}
 
 
 InsetBranch::~InsetBranch()