]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
fix #9826: Outline disclosure of subsection content disappears one second after
[lyx.git] / src / Cursor.h
index a0f5ec14bf14f4ac434163f7690f6e264bbe17b6..de2405692a9f70065dcadcaf04ef3ed50e1dd2b1 100644 (file)
@@ -297,10 +297,9 @@ public:
 
        /// access to normalized selection anchor
        CursorSlice normalAnchor() const;
-       // FIXME: this can't be a const & and a const function because
-       // LFUN_TAB_* wants to move the real anchor.
        /// access to real selection anchor
-       DocIterator & realAnchor();
+       DocIterator const & realAnchor() const { return anchor_; }
+       DocIterator & realAnchor() { return anchor_; }
        /// sets anchor to cursor position
        void resetAnchor();
        /// access to owning BufferView