#include "buffer.h"
#include "BufferView.h"
+#include "cursor_slice.h"
#include "iterators.h"
#include "lyxtext.h"
#include "paragraph.h"
using boost::prior;
+
PosIterator & PosIterator::operator++()
{
BOOST_ASSERT(!stack_.empty());
PosIterator::PosIterator(BufferView & bv)
{
LyXText * text = bv.getLyXText();
- lyx::pos_type pos = text->cursor().pos();
+ lyx::pos_type pos = bv.cursor().pos();
ParagraphList::iterator pit = text->cursorPar();
ParIterator par = bv.buffer()->par_iterator_begin();