]> git.lyx.org Git - lyx.git/blobdiff - src/cursor_slice.h
fix crash when collapsing ert with cursor inside
[lyx.git] / src / cursor_slice.h
index 03137bfdcc7467184d3f1403b9eafa3ff77c9584..06414cfc4f2d3f00b6bddd179542ff82cdd1f1f6 100644 (file)
@@ -64,9 +64,9 @@ public:
        idx_type & idx() { return idx_; }
        /// return the last cell in this inset
        idx_type lastidx() const { return nargs() - 1; }
-       /// return the paragraph this cursor is in
+       /// return the offset of the paragraph this cursor is in
        pit_type pit() const { return pit_; }
-       /// set the paragraph this cursor is in
+       /// set the offset of the paragraph this cursor is in
        pit_type & pit() { return pit_; }
        /// increments the paragraph this cursor is in
        void incrementPar();
@@ -97,7 +97,9 @@ public:
        /// see comment for the member
        bool & boundary() { return boundary_; }
        ///
-       LyXText * text() const;
+       LyXText * text();
+       ///
+       LyXText const * text() const;
        ///
        UpdatableInset * asUpdatableInset() const;
        ///