]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_iterator.C
Fix.
[lyx.git] / src / mathed / math_iterator.C
index 0ea30539f44aa24ea9c33d9eded7d134431ae575..eb73b1a3a38b310e8573728d91f5c815b97e4e3c 100644 (file)
@@ -1,3 +1,4 @@
+
 #include <config.h>
 
 #include "math_iterator.h"
@@ -73,8 +74,8 @@ void MathIterator::goEnd()
 
 void MathIterator::operator++()
 {
-       MathCursorPos   & top = back();
-       MathArray & ar  = top.par_->cell(top.idx_);
+       MathCursorPos & top = back();
+       MathArray     & ar  = top.par_->cell(top.idx_);
 
        // move into the current inset if possible
        // it is impossible for pos() == size()!
@@ -119,20 +120,10 @@ void MathIterator::jump(difference_type i)
 }
 
 
-/*
-void MathIterator::shrink(size_type i)
-{
-       if (i < size())
-               erase(begin() + i, end());
-}
-
-
-void MathIterator::shrink(size_type i)
+bool MathIterator::normal() const
 {
-       if (i < size())
-               erase(begin() + i, end());
+       return back().pos_ < cell().size();
 }
-*/
 
 
 void MathIterator::shrink(size_type i)