]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.cpp
Try to implement properly recursive setBuffer. Normally, implmenting
[features.git] / src / mathed / InsetMathNest.cpp
index 99bfc5f46aa6e47326e936689722f00682c6d88f..484418ea4a5eb5586a4d0c32b28022d9f49b47b6 100644 (file)
@@ -100,6 +100,17 @@ InsetMathNest & InsetMathNest::operator=(InsetMathNest const & inset)
 }
 
 
+void InsetMathNest::setBuffer(Buffer & buffer)
+{
+       InsetMath::setBuffer(buffer);
+       for (idx_type i = 0, n = nargs(); i != n; ++i) {
+               MathData & data = cell(i);
+               for (size_t j = 0; j != data.size(); ++j)
+                       data[j].nucleus()->setBuffer(buffer);
+       }
+}
+
+
 InsetMath::idx_type InsetMathNest::nargs() const
 {
        return cells_.size();