]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
fix crash when collapsing ert with cursor inside
[lyx.git] / src / BufferView.h
index 1197ea34f5090c6e48ddb38b007519ed02373a46..b41d2df19b957739c6647086453c4b2144611f26 100644 (file)
@@ -102,7 +102,10 @@ public:
        Change const getCurrentChange();
 
        /// return the lyxtext we are using
-       LyXText * getLyXText() const;
+       LyXText * getLyXText();
+
+       /// return the lyxtext we are using
+       LyXText const * getLyXText() const;
 
        /// simple replacing. Use the font of the first selected character
        void replaceSelectionWithString(std::string const & str);
@@ -154,7 +157,7 @@ public:
        int offset_ref() const;
        /// access to anchor
        lyx::pit_type anchor_ref() const;
-       
+
        /// access to full cursor
        LCursor & cursor();
        /// access to full cursor
@@ -162,7 +165,7 @@ public:
        ///
        LyXText * text() const;
        ///
-       void setCursor(ParIterator const & par, lyx::pos_type pos);
+       void setCursor(DocIterator const &);
        /* Sets the selection. When \c backwards == false, set anchor
         * to \c cur and cursor to \c cur + \c length. When \c
         * backwards == true, set anchor to \c cur and cursor to \c