On Fri, Nov 08, 2002 at 03:51:03PM +0000, [EMAIL PROTECTED] wrote: > Log message: > Backed out a change of my last patch which I now see is not correct. This > should fix the undo bugs we see. >
This should also be done for 1.2.2. Is it OK to apply this patch ?
Index: undo_funcs.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/undo_funcs.C,v retrieving revision 1.22.2.2 diff -u -p -r1.22.2.2 undo_funcs.C --- undo_funcs.C 18 Oct 2002 14:21:05 -0000 1.22.2.2 +++ undo_funcs.C 8 Nov 2002 16:22:59 -0000 @@ -219,7 +219,11 @@ bool textHandleUndo(BufferView * bv, Und 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 = tmppar3->inInset(); if (it) it->getLyXText(bv)->setCursorIntern(bv, tmppar3, 0); @@ -227,6 +231,7 @@ bool textHandleUndo(BufferView * bv, Und bv->text->setCursorIntern(bv, tmppar3, 0); } +#endif Paragraph * endpar = 0; // calculate the endpar for redoing the paragraphs.