]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.C
ws changes only
[lyx.git] / src / InsetList.C
index abe2d6577e1c91344d0b4703803b4cac4eebf6ec..33200216ae2e138c20b034c0d9ab1f496c607fd0 100644 (file)
 #include <config.h>
 
 #include "InsetList.h"
-#include "BufferView.h"
+
 #include "buffer.h"
+#include "bufferparams.h"
+#include "BufferView.h"
 #include "debug.h"
 
-#include "insets/updatableinset.h"
 #include "insets/insetbranch.h"
 
-#include <algorithm>
-
 using lyx::pos_type;
 
+using std::endl;
 using std::lower_bound;
 using std::upper_bound;
-using std::endl;
+
 
 namespace {
 
@@ -194,13 +194,13 @@ void InsetList::deleteInsetsLyXText(BufferView * bv)
 
 void InsetList::insetsOpenCloseBranch(BufferView * bv)
 {
-       BufferParams bp = bv->buffer()->params;
+       BufferParams bp = bv->buffer()->params();
        List::iterator it = list.begin();
        List::iterator end = list.end();
        for (; it != end; ++it) {
                if (it->inset && it->inset->lyxCode() == InsetOld::BRANCH_CODE) {
                        InsetBranch * inset = static_cast<InsetBranch *>(it->inset);
-                       if (bp.branchlist.selected(inset->params().branch)) {
+                       if (bp.branchlist().selected(inset->params().branch)) {
                                inset->open(bv);
                        } else {
                                inset->close(bv);