]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_iterator.C
more math iterator adjustment
[features.git] / src / mathed / math_iterator.C
index e06157c864bfca74ad0c42029a66347dac85d1e8..2f949af5fda80cb362ba445df61446cbeda2ec30 100644 (file)
 #include <boost/assert.hpp>
 
 
-MathArray const & MathIterator::cell() const
-{
-       CursorSlice const & top = back();
-       return top.asMathInset()->cell(top.idx_);
-}
-
-
 void MathIterator::operator++()
 {
        CursorSlice & top = back();
@@ -88,9 +81,8 @@ MathIterator iend(MathInset * p)
 {
        MathIterator it;
        it.push_back(CursorSlice(p));
-       return it;
        CursorSlice & top = it.back();
        top.idx_ = top.asMathInset()->nargs() - 1;
-       top.pos_ = it.cell().size();
+       top.pos_ = top.asMathInset()->cell(top.idx_).size();
        return it;
 }