]> git.lyx.org Git - features.git/commitdiff
rev 19644: I forgot this.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 19 Aug 2007 13:40:09 +0000 (13:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 19 Aug 2007 13:40:09 +0000 (13:40 +0000)
* Cursor::fixIfBroken(): return fix status.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19645 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp
src/Cursor.h

index 9bfbada8a986a651d08f9db269f635a73673feac..e6cea1ff9507b91b45bb9692e766cd3b8f024712 100644 (file)
@@ -1476,12 +1476,14 @@ Font Cursor::getFont() const
 }
 
 
-void Cursor::fixIfBroken()
+bool Cursor::fixIfBroken()
 {
        if (DocIterator::fixIfBroken()) {
                        clearSelection();
                        resetAnchor();
+                       return true;
        }
+       return false;
 }
 
 
index cf2344f2c6d53de788f809131d7441bdac754efa..c56538a2df84148e8c6506c2fe08d8f1359f823e 100644 (file)
@@ -179,8 +179,9 @@ public:
         * Not using noUpdate() should never be wrong.
         */
        void noUpdate();
-       /// fix cursor in circumstances that should never happen
-       void fixIfBroken();
+       /// fix cursor in circumstances that should never happen.
+       /// \retval true if a fix occured.
+       bool fixIfBroken();
 
        /// output
        friend std::ostream & operator<<(std::ostream & os, Cursor const & cur);