Undo cursor/selection bug fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-05-24 10:37:46 +00:00
parent 75d1fb6874
commit b7a265b19e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-05-24 Juergen Vigna <jug@sad.it>
* undo_funcs.C (textHandleUndo): fix the cursor selection after
setting the undo_cursor.
2002-05-23 John Levon <moz@compsoc.man.ac.uk>
* BufferView_pimpl.C:

View File

@ -240,6 +240,10 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
t = bv->text;
}
t->setCursorIntern(bv, tmppar, undo->cursor_pos);
// clear any selection and set the selection cursor
// for an evt. new selection.
t->clearSelection();
t->selection.cursor = t->cursor;
t->updateCounters(bv, t->cursor.row());
bv->fitCursor();
}
@ -258,6 +262,10 @@ bool textHandleUndo(BufferView * bv, Undo * undo)
t = bv->text;
}
t->setCursorIntern(bv, tmppar, undo->cursor_pos);
// clear any selection and set the selection cursor
// for an evt. new selection.
t->clearSelection();
t->selection.cursor = t->cursor;
t->updateCounters(bv, t->cursor.row());
}
}