Alfredo Braunstein wrote:

> Kornel Benko wrote:
> 
>> Undo. I expected the box to disappear. And it is current cvs as of 13:00
>> today + search3.diff
> 
> It is already in current cvs (i.e. not related to search3.diff).

Can you confirm that the following patch solves the problem (and it doesn't
introduce new ones in undo ? :-)

Thanks, Alfredo

Index: undo.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/undo.C,v
retrieving revision 1.25
diff -u -p -u -r1.25 undo.C
--- undo.C      29 Oct 2003 12:18:08 -0000      1.25
+++ undo.C      3 Nov 2003 09:06:11 -0000
@@ -200,12 +200,8 @@ bool performUndoOrRedo(BufferView * bv, 
        // rebreak the entire lyxtext
        bv->text->fullRebreak();
 
-       InsetOld * inset = pit.inset();
-       if (inset) {
-               // magic needed to cope with inset locking
-               bv->lockInset(dynamic_cast<UpdatableInset *>(inset));
-       }
-
+       pit.lockPath(bv);
+       
        finishUndo();
        return true;
 }

Reply via email to