]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_iterator.C
fix #1073
[lyx.git] / src / mathed / math_iterator.C
index 8f508907e8bbed52a78ce3fe1d2307141bb078f0..eb73b1a3a38b310e8573728d91f5c815b97e4e3c 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef __GNUG__
-#pragma implementation 
-#endif
 
 #include <config.h>
 
@@ -77,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()!
@@ -123,20 +120,10 @@ void MathIterator::jump(difference_type i)
 }
 
 
-/*
-void MathIterator::shrink(size_type i)
+bool MathIterator::normal() const
 {
-       if (i < size())
-               erase(begin() + i, end());
-}
-
-
-void MathIterator::shrink(size_type i)
-{
-       if (i < size())
-               erase(begin() + i, end());
+       return back().pos_ < cell().size();
 }
-*/
 
 
 void MathIterator::shrink(size_type i)