Lars Gullik Bjønnes wrote: > I see this undo failure as well.
Gosh this was hard to track. John, I think you are the one to blame here, so please apply this. ;) Alfredo
Index: ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v retrieving revision 1.1199 diff -u -p -u -r1.1199 ChangeLog --- ChangeLog 2003/04/04 19:56:31 1.1199 +++ ChangeLog 2003/04/04 20:15:25 @@ -1,3 +1,7 @@ +2003-04-04 Alfredo Braunstein <[EMAIL PROTECTED]> + + * text2.C (changeDepth): make undo work again + 2003-04-04 Angus Leeming <[EMAIL PROTECTED]> * LaTeX.h: move AuxInfo operator==, != out of line. Index: text2.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/text2.C,v retrieving revision 1.327 diff -u -p -u -r1.327 text2.C --- text2.C 2003/04/04 19:36:37 1.327 +++ text2.C 2003/04/04 20:15:29 @@ -467,7 +467,8 @@ bool LyXText::changeDepth(bv_funcs::DEPT ParagraphList::iterator pastend = end; ++pastend; - setUndo(bv(), Undo::EDIT, &(*start), &(*pastend)); + if (!test_only) + setUndo(bv(), Undo::EDIT, &(*start), &(*pastend)); bool changed = false;