From 3113e957bee33a3d9c16dab21b8b4971b336cbc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Fri, 8 Nov 2002 14:51:03 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 5 +++++ src/undo_funcs.C | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7c1a246df8..460fea54ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-11-08 Juergen Vigna + + * undo_funcs.C (textHandleUndo): fixed problems with undo introduced + by my last patch (hopefully). + 2002-11-08 John Levon * iterators.h: diff --git a/src/undo_funcs.C b/src/undo_funcs.C index 2d8e529b29..873f445a5b 100644 --- a/src/undo_funcs.C +++ b/src/undo_funcs.C @@ -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. -- 2.39.5