]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBranch.cpp
Manage the initial setting of Default or Plain Layout more simply.
[features.git] / src / insets / InsetBranch.cpp
index 45e4ebe72f9b813efb2f05d9b09d9cc3cf8523b5..fb599edbc5ba446d6a1f767a42251d7d06c61d25 100644 (file)
@@ -40,13 +40,8 @@ using namespace std;
 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);
-}
+       : InsetCollapsable(buf, InsetText::DefaultLayout), params_(params)
+{}
 
 
 InsetBranch::~InsetBranch()