]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.cpp
fix MSVC warning.
[lyx.git] / src / InsetList.cpp
index 61d418410cbf976847ed89f7b67135511a25527e..c3d2805511a269bf4b4291e8cebad68d4d9bdf16 100644 (file)
 
 #include "insets/InsetBranch.h"
 
-
-namespace lyx {
-
 using std::endl;
 using std::lower_bound;
 
 
+namespace lyx {
+
+
 namespace {
 
 typedef InsetList::InsetTable Table;
@@ -138,4 +138,13 @@ void InsetList::decreasePosAfterPos(pos_type pos)
 }
 
 
+InsetList::InsetList(InsetList const & il)
+{
+       list_ = il.list_;
+       List::iterator it = list_.begin();
+       List::iterator end = list_.end();
+       for (; it != end; ++it)
+               it->inset = it->inset->clone();
+}
+
 } // namespace lyx