]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_hullinset.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_hullinset.C
index d47beb27d77dfb581bb6e15e9c0add690c9288c1..3f46a091c1a015ea127865f8455b4d6611da6be0 100644 (file)
@@ -1070,7 +1070,7 @@ bool MathHullInset::searchForward(BufferView * bv, string const & str,
 #warning pretty ugly
 #endif
        static MathHullInset * lastformula = 0;
-       static CursorBase current = CursorBase(ibegin(nucleus()));
+       static CursorBase current = DocumentIterator(ibegin(nucleus()));
        static MathArray ar;
        static string laststr;
 
@@ -1086,7 +1086,7 @@ bool MathHullInset::searchForward(BufferView * bv, string const & str,
        }
        //lyxerr << "searching '" << str << "' in " << this << ar << endl;
 
-       for (CursorBase it = current; it != iend(nucleus()); increment(it)) {
+       for (DocumentIterator it = current; it != iend(nucleus()); increment(it)) {
                CursorSlice & top = it.back();
                MathArray const & a = top.asMathInset()->cell(top.idx_);
                if (a.matchpart(ar, top.pos_)) {