#include <config.h>
#include "InsetList.h"
-#include "BufferView.h"
+
#include "buffer.h"
+#include "bufferparams.h"
+#include "BufferView.h"
#include "debug.h"
#include "insets/insetbranch.h"
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);