]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.cpp
VCS: Handle one boundary condition.
[lyx.git] / src / InsetList.cpp
index b7e453ce9d86578c8424d00e515b76b4d93fd4de..057c82d00ec1c376510d9a949a83848f7d4a1e9b 100644 (file)
  */
 
 #include <config.h>
+#include <algorithm>
 
 #include "InsetList.h"
 
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BranchList.h"
-#include "support/debug.h"
 
 #include "insets/InsetBranch.h"
 
+#include "support/debug.h"
+
 using namespace std;
 
 namespace lyx {
@@ -59,6 +61,15 @@ InsetList::~InsetList()
 }
 
 
+void InsetList::setBuffer(Buffer & b)
+{
+       List::iterator it = list_.begin();
+       List::iterator end = list_.end();
+       for (; it != end; ++it)
+               it->inset->setBuffer(b);
+}
+
+
 InsetList::iterator InsetList::insetIterator(pos_type pos)
 {
        InsetTable search_elem(pos, 0);