]> git.lyx.org Git - features.git/blobdiff - src/PosIterator.C
more shuffling...
[features.git] / src / PosIterator.C
index d2e20651b6c6e8ecb7c97e57c739faf75954bd2f..69004c07948d079622c91b360f46f699546fd0b9 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "buffer.h"
 #include "BufferView.h"
+#include "cursor_slice.h"
 #include "iterators.h"
 #include "lyxtext.h"
 #include "paragraph.h"
@@ -26,6 +27,7 @@
 
 using boost::prior;
 
+
 PosIterator & PosIterator::operator++()
 {
        BOOST_ASSERT(!stack_.empty());
@@ -128,7 +130,7 @@ PosIterator::PosIterator(ParagraphList * pl, ParagraphList::iterator pit,
 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();