Backed out a change of my last patch which I now see is not correct. This

should fix the undo bugs we see.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5610 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-11-08 14:51:03 +00:00
parent 44feb026ce
commit 3113e957be
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-08 Juergen Vigna <jug@sad.it>
* undo_funcs.C (textHandleUndo): fixed problems with undo introduced
by my last patch (hopefully).
2002-11-08 John Levon <levon@movementarian.org>
* iterators.h:

View File

@ -193,13 +193,18 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
it->getLyXText(bv)->setCursorIntern(bv, before, 0);
else
bv->text->setCursorIntern(bv, before, 0);
} else { // otherwise this is the first one and we start here
}
// we are not ready for this we cannot set the cursor for a paragraph
// which is not already in a row of LyXText!!!
#if 0
else { // otherwise this is the first one and we start here
Inset * it = undopar->inInset();
if (it)
it->getLyXText(bv)->setCursorIntern(bv, undopar, 0);
else
bv->text->setCursorIntern(bv, undopar, 0);
}
#endif
Paragraph * endpar = 0;
// calculate the endpar for redoing the paragraphs.