]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.cpp
Make sure inset buffer is correctly set in math grid
[features.git] / src / mathed / InsetMathNest.cpp
index 362af4ac202fc9140331bcb5c1fe785ce1fe8c9b..35f28e95c03436f1fe656ab9318c69024bf452ed 100644 (file)
@@ -118,11 +118,8 @@ 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);
-       }
+       for (MathData & data : cells_)
+               data.setBuffer(buffer);
 }