kin%netscape.com 7f79330aa2 Fix for blocker bug 126770 (Undo/Redo doesn't work in Text widgets, Composer, and Mail)
mozilla/editor/txmgr/src/nsTransactionManager.cpp
  mozilla/editor/txmgr/src/nsTransactionStack.cpp

    - nsTransactionStack::Peek() was intended to return NULL for
      an empty stack so I changed timeless' change for bug 114166
      to return NS_OK and init the return value to zero.

    - timeless also changed the behavior of nsDeque::End(), it no
      longer returns an interator that is one past the end. So
      nsTransactionStack::Peek() had to call CurrentItem() instead
      of operator--.

    - I also backed out the changes made to nsTransactionManager.cpp
      cause they are unnecessary with the changes made to
      nsTransactionStack::Peek() above.

r=timeless@bemail.org  sr=hyatt@netscape.com  a=leaf@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115118 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 23:22:31 +00:00
..