]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
Change to use preffered calling of Boost.Function
[lyx.git] / src / undo.C
index b0f0fe19310d43d5fa1863009ce08c87ee5641dd..d7a36941d0b6769fd933840b2475f3ce4f988c80 100644 (file)
@@ -108,7 +108,8 @@ void performUndoOrRedo(BufferView & bv, Undo const & undo)
 {
        LCursor & cur = bv.cursor();
        lyxerr << "undo, performing: " << undo << std::endl;
-       cur.setCursor(undo.cursor.asDocIterator(&bv.buffer()->inset()), false);
+       cur.setCursor(undo.cursor.asDocIterator(&bv.buffer()->inset()));
+       cur.selection() = false;
 
        if (cur.inMathed()) {
                // We stored the full cell here as there is not much to be