mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
44feb026ce
commit
3113e957be
@ -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:
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user