#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;
}
//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_)) {