]> git.lyx.org Git - features.git/blobdiff - src/PosIterator.C
hide cursor and selection anchor behind accessor function
[features.git] / src / PosIterator.C
index bd3c6c3ec42622af804c56423129516a26df5984..d2e20651b6c6e8ecb7c97e57c739faf75954bd2f 100644 (file)
@@ -128,7 +128,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 = text->cursor().pos();
        ParagraphList::iterator pit = text->cursorPar();
        
        ParIterator par = bv.buffer()->par_iterator_begin();