>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
Juergen> stack.top().cell and undo.cell are not the same, because Juergen> pos() is different. It probably would be enough to just Juergen> compare idx(). But how? If I understand correctly, you problem is that a stable iterator does not give you direct access to the paragraph info, right? So what you have to do is compare the whole CursorSlice vectors in some way. A hackish but easy function would do bool samePar(StableDocIterator const & i1, StableDocIterator const & i2) { StableDocIterator tmpi2 = i2; tmpi2.back().pos() = i1.back().pos(); return i1 == tmpi2; } Would that work? JMarc