alfredo's undo fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-08 00:12:36 +00:00
parent d28efb5543
commit ef33e52de9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-08 Alfredo Braunstein <abraunst@libero.it>
* text2.C (changeDepth): do not setUndo on test_only (make undo work
again)
2003-04-05 Alfredo Braunstein <abraunst@libero.it> 2003-04-05 Alfredo Braunstein <abraunst@libero.it>
* lyxfind.C (searchForward, searchBackwards): bug 782 * lyxfind.C (searchForward, searchBackwards): bug 782

View File

@ -467,7 +467,8 @@ bool LyXText::changeDepth(bv_funcs::DEPTH_CHANGE type, bool test_only)
ParagraphList::iterator pastend = end; ParagraphList::iterator pastend = end;
++pastend; ++pastend;
setUndo(bv(), Undo::EDIT, &(*start), &(*pastend)); if (!test_only)
setUndo(bv(), Undo::EDIT, &(*start), &(*pastend));
bool changed = false; bool changed = false;