mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
fix undo crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8379 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2e5976a0be
commit
26b1ba3a9b
@ -1,3 +1,8 @@
|
||||
2004-02-02 Alfredo Braunstein <abraunst@lyx.org>
|
||||
|
||||
* iterators.C (lockPath): add a missing slice
|
||||
* undo.C (performUndoOrRedo): remove redundant positioning code
|
||||
|
||||
2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* vc-backend.C (scanMaster): ";" -> ';'
|
||||
|
@ -224,7 +224,7 @@ ParIterator::ParIterator(PosIterator const & pos)
|
||||
void ParIterator::lockPath(BufferView * bv) const
|
||||
{
|
||||
LCursor & cur = bv->cursor();
|
||||
cur.cursor_.clear();
|
||||
cur.reset();
|
||||
int const last = size() - 1;
|
||||
for (int i = 0; i < last; ++i)
|
||||
(*positions_[i].it)->inset->edit(cur, true);
|
||||
|
@ -178,14 +178,6 @@ bool performUndoOrRedo(BufferView * bv, Undo const & undo)
|
||||
<< " pos: " << undo.cursor_pos
|
||||
<< std::endl;
|
||||
|
||||
// set cursor again to force the position to be the right one
|
||||
LCursor & cur = bv->cursor();
|
||||
cur.par() = undo.cursor_par;
|
||||
cur.pos() = undo.cursor_pos;
|
||||
|
||||
// clear any selection
|
||||
cur.clearSelection();
|
||||
cur.resetAnchor();
|
||||
text->updateCounters();
|
||||
|
||||
// rebreak the entire lyxtext
|
||||
|
Loading…
Reference in New Issue
Block a user